Clienvy API documentation

Create a page

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/pages

Adds an empty page to a space, at the end of the top level or under another page. Write its content with the update endpoint. The response is the new node, with the updated space tree under space.

Create a page › path Parameters

space
​string · uuid · required

The space UUID

Create a page › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a page › Request Body

title
​string · maxLength: 64 · required
parent_id
​string | null · uuid

Create a page › Responses

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time

Update page content

PUT
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/page

Replaces the content of a page. The content is the full document as a list of block-editor nodes (see the introduction). Send null to empty the page. Changes are kept in the version history.

Update page content › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the page's node.

Update page content › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update page content › Request Body

content
​array | null · required

The page content as a list of block-editor nodes, or null for an empty page.

Update page content › Responses

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time