Retrieve a project
GET v1/projects/{:projectId}?mode=<'days' | 'hours'>&start_date=<number>&end_date=<number>
Allow to retrieve a project in the owned workspace.
Query parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| mode | string | Indicates whether the totalAllocation will be reported in days or hours | No | days |
| start_date | int | Filters the report start date, in milliseconds | No | - |
| end_date | int | Filters the report end date, in milliseconds | No | - |
Request Body Parameters
No body parameters
Response
{
"status": 200,
"value": {
"message": "string",
"status": 200,
"data": [
{
"id": "string",
"name": "string",
"status": <ProjectStatus>,
"color": <ProjectColors>,
"totalAllocation": "number",
"external_id": "string",
}
]
}
}
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| message | string | Message of the response | Yes | - |
| status | number | Status of the response | Yes | 200 |
| data | object | Project data | No | - |
Data
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| id | string (uuid) | Project internal identifier | Yes | - |
| name | string | Project name | Yes | - |
| color | ProjectColors | Project color | No | gray |
| status | ProjectStatus | Project status | No | TO_DO |
| totalAllocation | number | Total allocation | No | 0 |
| external_id | string | External reference to the project | No | - |