API Documentation
Pages ¶
Pages ¶
Supported filter params
-
creator_id
-
edited_at
-
id
-
project_id (array)
Supported sort params
-
created_at
-
creator_name
-
edited_at
-
project
-
title
-
updated_at
Update action disclaimer:
For a successful page update, it’s best to ensure no user has that page open in the application. Otherwise, the update might not make any changes to the page.
GET /api/v2/pages?filter[project_id]=1740
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": [
{
"id": "98",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:36.271+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": null,
"preferences": {},
"title": "Page title 90",
"updated_at": "2026-04-17T06:13:36.279+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:36.271+02:00",
"public_access": false,
"public_uuid": "b1ab5a17-5f95-5e3a-8547-1a98f68a67f9",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2355"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/pages?filter%5Bproject_id%5D=1740&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/pages?filter%5Bproject_id%5D=1740&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}Get pagesGET/api/v2/pages
GET /api/v2/pages/99
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "99",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:36.377+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": null,
"preferences": {},
"title": "Page title 91",
"updated_at": "2026-04-17T06:13:36.385+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:36.377+02:00",
"public_access": false,
"public_uuid": "192b20a5-22e6-58f4-a66a-e5a2c7a396a6",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2356"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"title": "test name",
"body": "test body"
},
"relationships": {
"project": {
"data": {
"type": "projects",
"id": "1744"
}
}
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "102",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:36.874+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:36.873+02:00",
"icon_id": null,
"position": null,
"preferences": null,
"title": "test name",
"updated_at": "2026-04-17T06:13:36.882+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:36.874+02:00",
"public_access": false,
"public_uuid": "c105ca05-1868-5ad2-a439-acd90327f1f8",
"body": "",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2359"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"title": "test name",
"body": "test body",
"root_page_id": "103",
"parent_page_id": "103"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "104",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:36.994+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:36.994+02:00",
"icon_id": null,
"position": null,
"preferences": null,
"title": "test name",
"updated_at": "2026-04-17T06:13:36.994+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:36.994+02:00",
"public_access": false,
"public_uuid": null,
"body": "",
"parent_page_id": 103,
"root_page_id": 103,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2360"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"parent_page_id": 106
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "page_parent_root_page_mutual_presence",
"title": "Invalid Attribute",
"detail": "parent_page_id and root_page_id must both be present or both be absent",
"meta": {},
"source": {
"pointer": "data/attributes/base"
}
}
]
}POST /api/v2/pages
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"title": "test name",
"body": "test body",
"version_number": "1"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "107",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:37.350+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:37.350+02:00",
"icon_id": null,
"position": null,
"preferences": null,
"title": "test name",
"updated_at": "2026-04-17T06:13:37.354+02:00",
"version_number": 1,
"last_activity_at": "2026-04-17T06:13:37.350+02:00",
"public_access": false,
"public_uuid": "f88c2991-9098-5a32-bcd1-5b8aa827ca58",
"body": "",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2363"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}Create a pagePOST/api/v2/pages
- title
string(required) Example: Titletitle
- project_id
number(optional) Example: 1project id
- root_page_id
number(optional) Example: 1id of the root doc (top-level page in the hierarchy).
- parent_page_id
number(optional) Example: 1id of the direct parent page (first level above this page).
PATCH /api/v2/pages/112/move
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"target_doc_id": "111"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "112",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:37.774+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": 1,
"preferences": {},
"title": "Page title 98",
"updated_at": "2026-04-17T06:13:37.823+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:37.774+02:00",
"public_access": false,
"public_uuid": "b729c6a5-76eb-5d3a-ada9-9106db792e3f",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": 111,
"root_page_id": 111,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2368"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/115/move
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"target_doc_id": "113"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "115",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:37.944+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": 1,
"preferences": {},
"title": "Page title 101",
"updated_at": "2026-04-17T06:13:37.986+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:37.944+02:00",
"public_access": false,
"public_uuid": null,
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": 113,
"root_page_id": 113,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2369"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/118/move
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"target_doc_id": "119"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "118",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:38.121+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": 1,
"preferences": {},
"title": "Page title 104",
"updated_at": "2026-04-17T06:13:38.169+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:38.121+02:00",
"public_access": false,
"public_uuid": null,
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": 119,
"root_page_id": 116,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2370"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/121/move
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"target_doc_id": ""
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "attribute is invalid",
"meta": {},
"source": {
"pointer": "data/attributes/target_doc_id"
}
}
]
}Moves a pagePATCH/api/v2/pages/{id}/move
- id
number(required) Example: 1page id
- target_doc_id
number(required) Example: 1target doc id
PATCH /api/v2/pages/128
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"title": "new title"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "128",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:38.860+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:38.884+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "new title",
"updated_at": "2026-04-17T06:13:38.885+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:38.860+02:00",
"public_access": false,
"public_uuid": "c7d74420-95eb-5303-a186-90cb809c4d39",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2374"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}DELETE /api/v2/pages/132
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonPOST /api/v2/pages/copy
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 133
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "134",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:39.347+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:39.346+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "Copy of Page title 119",
"updated_at": "2026-04-17T06:13:39.350+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:39.323+02:00",
"public_access": false,
"public_uuid": "4d72f422-a158-509b-b404-869adb9ec0f9",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2378"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages/copy
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 135,
"title": "new page title",
"project_id": 1762
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "136",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:39.500+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:13:39.499+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "new page title",
"updated_at": "2026-04-17T06:13:39.506+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:39.422+02:00",
"public_access": false,
"public_uuid": "d6d4e033-0950-5e0b-8cd6-224e6ed3a226",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2379"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages/copy
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 137
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "attribute is invalid",
"meta": {},
"source": {
"pointer": "data/attributes/template_id"
}
}
]
}Copies a pagePOST/api/v2/pages/copy
- title
string(optional) Example: Titletitle
- template_id
number(required) Example: 1id of the page to be copied
PATCH /api/v2/pages/138/publish
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "138",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:39.703+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": null,
"preferences": {},
"title": "Page title 122",
"updated_at": "2026-04-17T06:13:39.727+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:39.703+02:00",
"public_access": true,
"public_uuid": "bbac1354-7bb4-5fb4-8c70-13264a36d76b",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": true
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2381"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/139/publish
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "409",
"code": "cannot_publish_doc_on_template",
"title": "Conflict error",
"meta": {},
"source": {}
}
]
}PATCH /api/v2/pages/140/unpublish
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "140",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:13:39.912+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": null,
"preferences": {},
"title": "Page title 124",
"updated_at": "2026-04-17T06:13:39.935+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:13:39.912+02:00",
"public_access": false,
"public_uuid": "7ad8f5ab-41a7-56c0-b1b8-bc3e5d52499a",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2383"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/141/unpublish
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "409",
"code": "cannot_unpublish_doc_on_template",
"title": "Conflict error",
"meta": {},
"source": {}
}
]
}Unpublishes a pagePATCH/api/v2/pages/{id}/unpublish
- id
number(required) Example: 1page id
POST /api/v2/pages/apply_template_as_doc
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 142
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "143",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:14:01.395+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:14:01.394+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "Template page title",
"updated_at": "2026-04-17T06:14:01.398+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:14:01.371+02:00",
"public_access": false,
"public_uuid": "6f72b597-2b8d-5848-8c23-e3a52f355844",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2565"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/pages/apply_template_as_doc
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 144
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "attribute is invalid",
"meta": {},
"source": {
"pointer": "data/attributes/template_id"
}
}
]
}Applies template as global/project docPOST/api/v2/pages/apply_template_as_doc
- template_id
number(required) Example: 1id of the template page to be applied
- project_id
number(optional) Example: 1id of project on which to apply template
PATCH /api/v2/pages/146/apply_template_on_parent
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 145
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "147",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:14:01.656+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:14:01.655+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "Template page title",
"updated_at": "2026-04-17T06:14:01.656+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:14:01.524+02:00",
"public_access": false,
"public_uuid": null,
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": 146,
"root_page_id": 146,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2567"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/149/apply_template_on_parent
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 148
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "attribute is invalid",
"meta": {},
"source": {
"pointer": "data/attributes/template_id"
}
}
]
}Applies template on parentPATCH/api/v2/pages/{id}/apply_template_on_parent
- id
number(required) Example: 1parent page id
- template_id
number(required) Example: 1id of the template page to be applied
PATCH /api/v2/pages/151/apply_template_as_target
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 150
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "151",
"type": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2026-04-17T06:14:01.998+02:00",
"custom_fields": null,
"edited_at": "2026-04-17T06:14:02.058+02:00",
"icon_id": null,
"position": null,
"preferences": {},
"title": "Template page title",
"updated_at": "2026-04-17T06:14:02.059+02:00",
"version_number": null,
"last_activity_at": "2026-04-17T06:14:01.917+02:00",
"public_access": false,
"public_uuid": "b4204202-34f7-55d6-9011-6029b5dd3099",
"body": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\"}]}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2569"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/pages/153/apply_template_as_target
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "pages",
"attributes": {
"template_id": 152
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "attribute is invalid",
"meta": {},
"source": {
"pointer": "data/attributes/template_id"
}
}
]
}Applies template as replaced targetPATCH/api/v2/pages/{id}/apply_template_as_target
- id
number(required) Example: 1target page id
- template_id
number(required) Example: 1id of the template page to be applied
Generated by aglio on 17 Apr 2026