Clienvy API documentation

List time categories

GET
https://api.clienvy.io/employee/v1
/time-categories

Returns all time categories, ordered by their position.

List time categories › query Parameters

search
​string

Filter categories by name.

List time categories › Headers

X-Organization-Id
​string · uuid · required

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

List time categories › Responses

Array of TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer

Create a time category

POST
https://api.clienvy.io/employee/v1
/time-categories

Creates a new time category and appends it to the end of the list.

Create a time category › Headers

X-Organization-Id
​string · uuid · required

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

Create a time category › Request Body

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

Category color: gray, blue, orange, green or red.

Create a time category › Responses

TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer

Reorder time categories

PUT
https://api.clienvy.io/employee/v1
/time-categories/reorder

Sets the position of one or more time categories and returns the full ordered list.

Reorder time categories › Headers

X-Organization-Id
​string · uuid · required

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

Reorder time categories › Request Body

​object[] · required

The categories and their new positions.

Reorder time categories › Responses

Array of TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer

Get a time category

GET
https://api.clienvy.io/employee/v1
/time-categories/{timeCategory}

Returns a single time category by ID.

Get a time category › path Parameters

timeCategory
​string · uuid · required

The time category UUID

Get a time category › Headers

X-Organization-Id
​string · uuid · required

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

Get a time category › Responses

TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer

Update a time category

PUT
https://api.clienvy.io/employee/v1
/time-categories/{timeCategory}

Updates a time category. Only the fields present in the request are changed.

Update a time category › path Parameters

timeCategory
​string · uuid · required

The time category UUID

Update a time category › Headers

X-Organization-Id
​string · uuid · required

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

Update a time category › Request Body

name
​string · maxLength: 64
color
​string

Category color: gray, blue, orange, green or red.

Update a time category › Responses

TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer

Delete a time category

DELETE
https://api.clienvy.io/employee/v1
/time-categories/{timeCategory}

Deletes a time category. Time entries and planned blocks in this category are kept and no longer have a category.

Delete a time category › path Parameters

timeCategory
​string · uuid · required

The time category UUID

Delete a time category › Headers

X-Organization-Id
​string · uuid · required

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

Delete a time category › Responses

TimeCategoryResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer