variables

4 of 19 in this chapter 1 min read

Update variable set

 
const inputBody = '{
  "title": "Products"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'
};
 
fetch('https://{instance}.paligoapp.com/api/v2/variablesets/{id}/',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
Body parameter
 
{
  "title": "Products"
}
Responses

Status

Meaning

Description

Schema

201

Created

Successful response.

VariableSet

 
{
  "id": 123,
  "title": "Products"
}