Clienvy API documentation

Project templates


List project templates

GET
https://api.clienvy.io/employee/v1
/project-templates

Returns all project templates with their phases, ordered by name. A new project can start from a template (project_template_id when creating a project) and then gets the template's phases.

List project templates › query Parameters

type
​string

Only return templates for projects of this type: fixed or recurring.

List project templates › Headers

X-Organization-Id
​string · uuid · required

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

List project templates › Responses

Array of ProjectTemplateResource

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

Chosen when the project is created and fixed from then on: the types are counted in different ways (phases against periods), so switching would reinterpret everything already logged.

Enum values:
fixed
recurring

Create a project template

POST
https://api.clienvy.io/employee/v1
/project-templates

Creates a project template with its phases.

Create a project template › Headers

X-Organization-Id
​string · uuid · required

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

Create a project template › Request Body

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

Which kind of project this template is for: fixed or recurring. Cannot be changed afterwards.

​object[]

The phases, in order. Only for fixed templates.

Create a project template › Responses

ProjectTemplateResource

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

Chosen when the project is created and fixed from then on: the types are counted in different ways (phases against periods), so switching would reinterpret everything already logged.

Enum values:
fixed
recurring

Get a project template

GET
https://api.clienvy.io/employee/v1
/project-templates/{projectTemplate}

Returns a single project template by ID, including its phases.

Get a project template › path Parameters

projectTemplate
​string · uuid · required

The project template UUID

Get a project template › Headers

X-Organization-Id
​string · uuid · required

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

Get a project template › Responses

ProjectTemplateResource

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

Chosen when the project is created and fixed from then on: the types are counted in different ways (phases against periods), so switching would reinterpret everything already logged.

Enum values:
fixed
recurring

Update a project template

PUT
https://api.clienvy.io/employee/v1
/project-templates/{projectTemplate}

Updates a project template. Only the fields present in the request are changed. phases replaces the full phase list. Existing projects are not affected.

Update a project template › path Parameters

projectTemplate
​string · uuid · required

The project template UUID

Update a project template › Headers

X-Organization-Id
​string · uuid · required

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

Update a project template › Request Body

name
​string · maxLength: 64
​object[]

The complete list of phases, in order. Phases left out are removed. Only for fixed templates.

Update a project template › Responses

ProjectTemplateResource

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

Chosen when the project is created and fixed from then on: the types are counted in different ways (phases against periods), so switching would reinterpret everything already logged.

Enum values:
fixed
recurring

Delete a project template

DELETE
https://api.clienvy.io/employee/v1
/project-templates/{projectTemplate}

Deletes a project template together with its template spaces. Projects created from the template keep their phases and spaces.

Delete a project template › path Parameters

projectTemplate
​string · uuid · required

The project template UUID

Delete a project template › Headers

X-Organization-Id
​string · uuid · required

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

Delete a project template › Responses

No content

No data returned