Create fork
const inputBody = '{
"parent": 5421,
"document": 3981,
"position": null
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://{instance}.paligoapp.com/api/v2/forks/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
Body parameter
{
"parent": 5421,
"document": 3981,
"position": null
}
Responses
{
"id": 8493,
"uuid": "UUID-1232-1454",
"parent": 3919,
"root_document": 3901,
"position": 7,
"depth": 4,
"document": {
"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": [
{}
],
"content": "<?xml>...",
"languages": [
"en",
"jp",
"sv"
],
"custom_attributes": [
{}
]
}
}