- Paligo API
- variables
- Create variable
variables
Create variable
const inputBody = '{"title": "Height","type": "text"}';const headers = {'Content-Type':'application/json','Accept':'application/json'};fetch('https://{instance}.paligoapp.com/api/v2/variables/',{method: 'POST',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"}