Skip to main content
GET
/
allocation
/
getAllocations
/
{projectId}
Get Allocations By Project
curl --request GET \
  --url https://planner.svc.v2.projectcor.com/allocation/getAllocations/{projectId} \
  --header 'Authorization: Bearer <token>'
{
  "users": [
    {
      "userId": 1234,
      "firstName": "John",
      "lastName": "Doe",
      "positionName": "Developer",
      "categoryName": "Engineering",
      "categoryId": "10",
      "picture": "",
      "userPositionId": "5",
      "companyId": 41195,
      "hidden": false,
      "isDeleted": false,
      "labelsByCategory": [],
      "createdAt": "2024-01-15T10:00:00",
      "allocations": [
        {
          "primaryKey": "00000001",
          "from": "2024-06-01T00:00:00",
          "to": "2024-08-31T00:00:00",
          "allocatedHours": 20,
          "capacity": 160,
          "availabilityLeft": 140,
          "createdAt": "2024-05-20T14:30:00",
          "allocationUserAnotherProjects": [
            {
              "projectId": 5678,
              "projectName": "Project Alpha",
              "clientName": "Client ABC",
              "allocatedHours": 15
            },
            {
              "projectId": 5679,
              "projectName": "Project Beta",
              "clientName": "Client XYZ",
              "allocatedHours": 5
            }
          ]
        }
      ],
      "totalAllocatedHours": 20
    }
  ]
}

Authorizations

Authorization
string
header
required

Uses the same authentication as the main COR API. Obtain a token from https://api.projectcor.com/v1/oauth/token

Path Parameters

projectId
integer
required

Project ID to get allocations for

Response

200 - application/json

List of user allocations for the project

users
object[]

List of users allocated to the project