API / Allocations

Allocations endpoint enables you to get information of allocation working hours reported by users to projects. Endpoint's URL is:

https://<your_environment_url>/customer-api/1.0/allocations/



GET

When calling /allocations/ endpoint without parameters you will get all the allocation hours from the database. Example response:


{
"count": 1,
"csvUrl": "/customer-api/1.0/allocations/?user.id=1&csv=true&allocation.date=2019-09-12",
"itemsPerPage": 500,
"excelUrl": "/customer-api/1.0/allocations/?user.id=1&excel=true&allocation.date=2019-09-12",
"next": null,
"current": 1,
"lastPage": 1,
"data": [
{
"id": 554,
"date": "2019-09-12",
"hours": "1.00",
"draft_hours": "1.00",
"projectrole": 1,
}
],
"previous": null
}