Skip to content

Project

Manage projects, including creation, update, deletion, and advanced search.
Projects can be linked to customers, partners, and subscriptions, and support metadata and filtering.

Version
2.0.0
OpenAPI version
3.0.0
POST
/v2/project/index

Returns a paginated and filterable list of projects.
Use POST to allow complex filters via JSON payload.

Parameters for searching projects

object
filter
object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort

The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order

string
history

The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.

boolean
Example
{
"filter": {
"name": "Project 1",
"project_type": "safety"
},
"per-page": 20,
"page": 1,
"sort": "name"
}

List of projects

Array<object>
object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
Example
{
"project_id": "proj-1",
"name": "Project 1",
"description": "Safety project",
"status": "active",
"project_type": "safety",
"customer_id": "cus-1",
"partner_id": "par-1",
"created_at": "2024-01-01",
"updated_at": "2024-01-02"
}
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

POST
/v2/project/create

Create a new project by providing the required details.

Project object to be created

object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
deleted_at

The date when the project was deleted (if applicable).

string format: date
Example
{
"name": "Project 2",
"description": "New project",
"status": "active",
"project_type": "safety",
"customer_id": "cus-2",
"partner_id": "par-2"
}

Project created successfully

object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
deleted_at

The date when the project was deleted (if applicable).

string format: date
Example
{
"project_id": "proj-2",
"name": "Project 2",
"description": "New project",
"status": "active",
"project_type": "safety",
"customer_id": "cus-2",
"partner_id": "par-2"
}
GET
/v2/project/view/{id}

Retrieve a project by its unique ID.

id
required
string format: uuid

ID of the project to retrieve

Project found

object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
Example
{
"project_id": "proj-1",
"name": "Project 1",
"description": "Safety project",
"status": "active",
"project_type": "safety",
"customer_id": "cus-1",
"partner_id": "par-1",
"created_at": "2024-01-01",
"updated_at": "2024-01-02"
}

Project not found

DELETE
/v2/project/delete/{id}

Delete a project by its unique ID.
If force=true, all related entities will also be deleted.

id
required
string format: uuid

ID of the project to delete

force
boolean

Force the deletion of the entity and all related entities

Project deleted successfully

If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned

PUT
/v2/project/update/{id}

Update an existing project by its unique ID.

id
required
string format: uuid

ID of the project to update

Project object with updated data

object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
deleted_at

The date when the project was deleted (if applicable).

string format: date
Example
{
"name": "Updated Project",
"status": "suspended"
}

Project updated successfully

object
project_id

The unique identifier of the project (primary key).

string format: uuid
name

The name of the project, with a maximum length of 50 characters.

string
<= 50 characters
description

A description of the project, if available.

string
nullable
status

The current status of the project (active, suspended, or deleted).

string
Allowed values: active suspended deleted
project_type

The type of the project (either ‘safety’ or ‘template’).

string
Allowed values: safety template
data

Additional data associated with the project in JSON format.

object
refund

The refund amount associated with the project.

integer
icon

The URL of the project’s icon, with a maximum length of 255 characters.

string format: url
<= 255 characters
npeople

The number of people associated with the project.

integer
subscription_id

The unique identifier of the subscription linked to the project.

string format: uuid
customer_id

The unique identifier of the customer associated with the project.

string format: uuid
partner_id

The unique identifier of the partner associated with the project.

string format: uuid
created_at

The date when the project was created.

string format: date
updated_at

The date when the project details were last updated.

string format: date
deleted_at

The date when the project was deleted (if applicable).

string format: date
Example
{
"project_id": "proj-1",
"name": "Updated Project",
"status": "suspended"
}

Project not found