Clienvy API documentation

List spaces

GET
https://api.clienvy.io/employee/v1
/spaces

Returns the spaces the employee can see, in the order they are shown, each with its tree of pages and boards (nodes, a flat list linked through parent_id). A space is standalone, belongs to a project, or belongs to a project template. A project created from a template starts with a copy of the template's spaces.

List spaces › query Parameters

owner_key
​string

Only the spaces of one owner: standalone, project.<uuid> or project-template.<uuid>. Left out, every space the employee can see is returned.

List spaces › Headers

X-Organization-Id
​string · uuid · required

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

List spaces › Responses

Array of SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Create a space

POST
https://api.clienvy.io/employee/v1
/spaces

Creates an empty space. Add pages and boards to it afterwards.

Create a space › Headers

X-Organization-Id
​string · uuid · required

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

Create a space › Request Body

name
​string · maxLength: 64 · required
owner_key
​string · required

What the space belongs to: standalone, project.<uuid> or project-template.<uuid>. A project created from a template starts with a copy of the template's spaces. A space for a project template requires full access. Cannot be changed afterwards.

internal_access
​string

Who can see the space: everyone, or individual for only the employees in employee_ids. Employees with full access see every space. Ignored for the spaces of a project or project template, which follow the access to that project or template. An individual space without employees falls back to everyone.

employee_ids
​string[]

UUIDs of the employees who can see an individual space. Replaces the current list.

Create a space › Responses

SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Get a space

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

Returns a single space by ID, with its access settings and its tree of pages and boards.

Get a space › path Parameters

space
​string · uuid · required

The space UUID

Get a space › Headers

X-Organization-Id
​string · uuid · required

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

Get a space › Responses

SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Update a space

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

Updates a space's name and access. Only the fields present in the request are changed.

Update a space › path Parameters

space
​string · uuid · required

The space UUID

Update a space › Headers

X-Organization-Id
​string · uuid · required

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

Update a space › Request Body

name
​string · maxLength: 64
internal_access
​string

Who can see the space: everyone, or individual for only the employees in employee_ids. Employees with full access see every space. Ignored for the spaces of a project or project template, which follow the access to that project or template. An individual space without employees falls back to everyone.

employee_ids
​string[]

UUIDs of the employees who can see an individual space. Replaces the current list.

Update a space › Responses

SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Delete a space

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

Deletes an empty space. A space that still has pages or boards cannot be deleted. Delete those first.

Delete a space › path Parameters

space
​string · uuid · required

The space UUID

Delete a space › Headers

X-Organization-Id
​string · uuid · required

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

Delete a space › Responses

SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Get a space node

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

Returns a page, board or showcase of a space. A node shares its ID with what it holds: a page node holds the page content under page, a board node the board with its views and collection under board, a showcase node its files and start file under showcase.

Get a space node › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The space node UUID

Get a space node › Headers

X-Organization-Id
​string · uuid · required

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

Get a space node › 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 a space node

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

Renames a page or board, or moves it in the tree. Pages and boards can only be nested under a page. Set parent_id to null to move a node to the top level. The response is the node, with the updated space tree under space.

Update a space node › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The space node UUID

Update a space node › Headers

X-Organization-Id
​string · uuid · required

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

Update a space node › Request Body

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

Update a space node › 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

Delete a space node

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

Deletes a page, board or showcase. Its child nodes move up to its parent. A board that still has items needs a destination for them: pass move_to_board_id with another board that shows the same collection and shares items with this one (a board of a project template only with the boards of that template, any other board only with boards outside templates). When no such board exists, the items have to be deleted first. Returns the updated space tree.

Delete a space node › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The space node UUID

Delete a space node › query Parameters

move_to_board_id
​string | null · uuid

Delete a space node › Headers

X-Organization-Id
​string · uuid · required

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

Delete a space node › Responses

SpaceTreeResource

id
​string · uuid
name
​string
type
​SpaceType · enum

What a space is there for, chosen when it is made and fixed from then on. The type decides how the space behaves; the project or template it belongs to only says which one.

Enum values:
standalone
project
project-template
​SpaceOwnerResource
internal_access
​SpaceAccessType · enum
Enum values:
everyone
individual
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal. Always none for spaces that do not belong to a project.

Enum values:
none
everyone
position
​integer
created_at
​string | null · date-time
updated_at
​string | null · date-time

Get the portal settings of a space

GET
https://api.clienvy.io/employee/v1
/spaces/{space}/customer-portal

Returns what a space of a project shows in the customer portal: whether it is shown at all, per page and board whether customers see it and what they may do with it, which employees are notified when a customer changes something in it, and the contacts who use the portal. For the spaces of a project, and of a project template: the projects made from a template start with its settings. A template's space has no notified employees or contacts of its own.

Get the portal settings of a space › path Parameters

space
​string · uuid · required

The space UUID

Get the portal settings of a space › Headers

X-Organization-Id
​string · uuid · required

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

Get the portal settings of a space › Responses

SpaceCustomerPortalResource

id
​string · uuid
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal: none, or everyone for every contact with access to projects there.

Enum values:
none
everyone

Every page and board of the space, a flat list linked through parent_id, with what customers see of it and may do with it.

​EmployeeReferenceResource[]

Who is notified when a customer changes something in the space: adds an item, changes or remarks on one, or writes on a page. While the space is not shown yet and nobody is chosen, these are the members of the project, who are chosen the moment the space is shown. Empty for a template's space.

The contacts of the project's company who use the customer portal: those with an account, and those with access to projects there. has_project_access tells who sees the space once it is shown. Access is set per contact and company, not on the space. Empty for a template's space.


Update the portal settings of a space

PUT
https://api.clienvy.io/employee/v1
/spaces/{space}/customer-portal

Changes what a space of a project shows in the customer portal. Only what is sent changes: a page or board left out of nodes keeps its settings. Showing the space for the first time while nobody is chosen to be notified makes the project's members the ones notified. For the spaces of a project, and of a project template, whose settings the projects made from it start with. A template's space takes no notification_employee_ids: who is notified is set per project.

Update the portal settings of a space › path Parameters

space
​string · uuid · required

The space UUID

Update the portal settings of a space › Headers

X-Organization-Id
​string · uuid · required

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

Update the portal settings of a space › Request Body

​object[]

Settings per page, board or showcase, each with its id: customer_portal_permissions (what customers may do with it, replacing what it had: for a page page.view and page.edit, for a board board.view, item.edit and item.create, for a showcase showcase.view; page.edit needs page.view, item.edit needs board.view, item.create needs both board.view and item.edit; a permission of the other kind or without what it needs is refused) and for a board editable_field_ids (the fields customers may fill in with item.edit, see fields in the response).

notification_employee_ids
​string[]

UUIDs of the employees notified when a customer changes something in the space: adds an item, changes or remarks on one, or writes on a page. One notification per project while it is open. Replaces the current list. Not for the space of a project template.

customer_portal_access
​string

Who of the project's company sees the space in the customer portal: none, or everyone for every contact with access to projects there.

Update the portal settings of a space › Responses

SpaceCustomerPortalResource

id
​string · uuid
customer_portal_access
​SpaceCustomerPortalAccessType · enum

Who of the project's company sees the space in the customer portal: none, or everyone for every contact with access to projects there.

Enum values:
none
everyone

Every page and board of the space, a flat list linked through parent_id, with what customers see of it and may do with it.

​EmployeeReferenceResource[]

Who is notified when a customer changes something in the space: adds an item, changes or remarks on one, or writes on a page. While the space is not shown yet and nobody is chosen, these are the members of the project, who are chosen the moment the space is shown. Empty for a template's space.

The contacts of the project's company who use the customer portal: those with an account, and those with access to projects there. has_project_access tells who sees the space once it is shown. Access is set per contact and company, not on the space. Empty for a template's space.