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
{
"id": 123,
"variable_set_id": 123,
"title": "Height",
"type": "text"
}