variables

14 of 19 in this chapter 1 min read

Update variable

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

Status

Meaning

Description

Schema

201

Created

Successful response.

Variable

 
{
  "id": 123,
  "variable_set_id": 123,
  "title": "Height",
  "type": "text"
}