Clienvy API documentation

List collections

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

Returns all collections with their fields, ordered by name. A collection is a custom data type (for example tasks): its fields are the columns and its items the rows. Collections are shown in spaces through boards.

List collections › query Parameters

search
​string

Filter collections by name.

List collections › Headers

X-Organization-Id
​string · uuid · required

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

List collections › Responses

Array of CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Create a collection

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

Creates an empty collection. Add its fields afterwards with the collection field endpoints.

Create a collection › Headers

X-Organization-Id
​string · uuid · required

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

Create a collection › Request Body

name
​string · maxLength: 64 · required

Create a collection › Responses

CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Get a collection

GET
https://api.clienvy.io/employee/v1
/collections/{collection}

Returns a single collection by ID, including its fields and their options.

Get a collection › path Parameters

collection
​string · uuid · required

The collection UUID

Get a collection › Headers

X-Organization-Id
​string · uuid · required

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

Get a collection › Responses

CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Update a collection

PUT
https://api.clienvy.io/employee/v1
/collections/{collection}

Renames a collection.

Update a collection › path Parameters

collection
​string · uuid · required

The collection UUID

Update a collection › Headers

X-Organization-Id
​string · uuid · required

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

Update a collection › Request Body

name
​string · maxLength: 64

Update a collection › Responses

CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Delete a collection

DELETE
https://api.clienvy.io/employee/v1
/collections/{collection}

Deletes a collection together with its fields. A collection that is still shown on a board cannot be deleted. Delete those boards first.

Delete a collection › path Parameters

collection
​string · uuid · required

The collection UUID

Delete a collection › Headers

X-Organization-Id
​string · uuid · required

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

Delete a collection › Responses

CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Create a collection field

POST
https://api.clienvy.io/employee/v1
/collections/{collection}/fields

Adds a field (column) to a collection. The type cannot be changed afterwards. The response is the field, with the updated collection under collection.

Create a collection field › path Parameters

collection
​string · uuid · required

The collection UUID

Create a collection field › Headers

X-Organization-Id
​string · uuid · required

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

Create a collection field › Request Body

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

Field type: text, date, status, select, employee, project (only with the projects module), company or contact.

allow_multiple
​boolean

Whether an item can hold more than one value. Only applies to select, employee, project, company and contact fields.

default_visible
​boolean

Whether new board views show this field as a column.

default_from_context
​boolean

Whether a new item gets the logged-in employee as default value. Only applies to employee fields.

position
​integer

Position of the field within the collection.

parent_field_id
​string | null · uuid

UUID of the company field this contact field belongs to. Its choices are then limited to the contacts of that company. Ignored for other types.

​object[]

The complete list of options for a status or select field, in display order. Options left out are deleted. A status field needs at least one open and one completed option.

Create a collection field › Responses

CollectionFieldResource

id
​string · uuid
type
​CollectionFieldType · enum
Enum values:
text
date
status
select
employee
project
company
contact
name
​string
label_attribute
​string | null
allow_multiple
​boolean
default_visible
​boolean
parent_field_id
​string | null
position
​integer
default_from_context
​boolean

Reorder collection fields

PUT
https://api.clienvy.io/employee/v1
/collections/{collection}/fields/reorder

Sets the position of one or more fields of a collection, which is the order of the columns on its boards, and returns the collection.

Reorder collection fields › path Parameters

collection
​string · uuid · required

The collection UUID

Reorder collection fields › Headers

X-Organization-Id
​string · uuid · required

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

Reorder collection fields › Request Body

​object[] · required

The fields and their new positions.

Reorder collection fields › Responses

CollectionResource

id
​string · uuid
name
​string
created_at
​string | null · date-time
updated_at
​string | null · date-time

Update a collection field

PUT
https://api.clienvy.io/employee/v1
/collections/{collection}/fields/{collectionField}

Updates a field. Only the fields present in the request are changed, and the type cannot be changed. When options is given, it replaces the full option list. The response is the field, with the updated collection under collection.

Update a collection field › path Parameters

collection
​string · uuid · required

The collection UUID

collectionField
​string · uuid · required

The collection field UUID

Update a collection field › Headers

X-Organization-Id
​string · uuid · required

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

Update a collection field › Request Body

name
​string · maxLength: 64
allow_multiple
​boolean

Whether an item can hold more than one value. Only applies to select, employee, project, company and contact fields.

default_visible
​boolean

Whether new board views show this field as a column.

default_from_context
​boolean

Whether a new item gets the logged-in employee as default value. Only applies to employee fields.

position
​integer

Position of the field within the collection.

parent_field_id
​string | null · uuid

UUID of the company field this contact field belongs to. Its choices are then limited to the contacts of that company. Ignored for other types.

​object[]

The complete list of options for a status or select field, in display order. Options left out are deleted. A status field needs at least one open and one completed option.

Update a collection field › Responses

CollectionFieldResource

id
​string · uuid
type
​CollectionFieldType · enum
Enum values:
text
date
status
select
employee
project
company
contact
name
​string
label_attribute
​string | null
allow_multiple
​boolean
default_visible
​boolean
parent_field_id
​string | null
position
​integer
default_from_context
​boolean

Delete a collection field

DELETE
https://api.clienvy.io/employee/v1
/collections/{collection}/fields/{collectionField}

Deletes a field together with its options and the values items hold for it. A field that another field belongs to (a company field with a linked contact field) cannot be deleted.

Delete a collection field › path Parameters

collection
​string · uuid · required

The collection UUID

collectionField
​string · uuid · required

The collection field UUID

Delete a collection field › Headers

X-Organization-Id
​string · uuid · required

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

Delete a collection field › Responses

CollectionFieldResource

id
​string · uuid
type
​CollectionFieldType · enum
Enum values:
text
date
status
select
employee
project
company
contact
name
​string
label_attribute
​string | null
allow_multiple
​boolean
default_visible
​boolean
parent_field_id
​string | null
position
​integer
default_from_context
​boolean