Update document
const inputBody = '{
"name": "My topic",
"content": "<?xml>...",
"checkout": "false",
"taxonomies": [
603,
304
],
"custom_attributes": [
{
"name": "My custom attribute name",
"value": "My attribute value"
}
]
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://{instance}.paligoapp.com/api/v2/documents/{id}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
Body parameter
{
"name": "My topic",
"content": "<?xml>...",
"checkout": "false",
"taxonomies": [
603,
304
],
"custom_attributes": [
{
"name": "My custom attribute name",
"value": "My attribute value"
}
]
}
Responses
{
"id": 123,
"name": "My topic",
"uuid": "UUID-1234-5678",
"type": "document",
"creator": "2",
"owner": "2",
"author": "2",
"created_at": 1603622378,
"modified_at": 1603622378,
"checkout": "false",
"checkout_user": "2",
"parent_resource": 456,
"taxonomies": [
{
"id": 603,
"title": "My taxonomy",
"color": 3
}
],
"content": "<?xml>...",
"languages": [
"en",
"jp",
"sv"
],
"custom_attributes": [
{
"name": "My custom attribute name",
"value": "My attribute value"
}
]
}