Create production
const inputBody = '{
"publishsetting": "123"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://{instance}.paligoapp.com/api/v2/productions/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
Body parameter
{
"publishsetting": "123"
}
Responses
Status | Meaning | Description | Schema |
|---|---|---|---|
200 | Successful response. |
{
"id": "production.1234-5678",
"status": "running",
"url": "https://example.paligoapp.com/output-name.pdf",
"message": "Creating PDF.",
"steps": {
"total": 20,
"count": 2
},
"log_url": "https://example.paligoapp.com/production-id/out.log"
}