Skip to main content
The Resource Allocation API is a dedicated service for managing the capacity of users on the COR platform. This service allows you to allocate users to projects, track their availability, and manage workload distribution.

Overview

COR’s Resource Allocation service provides endpoints to:
  • Save allocations — Assign users to projects with specific hour allocations
  • Update allocations — Modify existing allocations
  • Remove allocations — Delete allocations when no longer needed
  • Get allocations — Retrieve allocation data for a specific project

Base URL

The Resource Allocation API uses a different base URL than the main COR API:

Authentication

The Resource Allocation API uses the same authentication as the main COR API. You can use the same Bearer token obtained from the main authentication endpoints.
To authenticate requests, include your access token in the Authorization header:
Obtain your access token using one of the authentication methods from the main API:

Quick Start

Creating an Allocation

To allocate a user to a project, send a POST request with the allocation details:

Getting Project Allocations

To retrieve all allocations for a project:

Known Errors

The API may return the following error types:

Validation Rules

When creating or updating allocations, ensure that:
  • The allocatedHours field is not empty
  • The from date is before the to date
  • The date range does not exceed 12 months
  • No existing allocation overlaps with the new date range for the same user and project

Batch Migration

If you have a large amount of allocation data to migrate, you can use a script to batch process the data.

Migration Script Example

Data File Format

The allocations data file should follow this format:
The same script structure can be used for updating allocations by changing the endpoint to /allocation/updateAllocation and adjusting the data format to include both oldAllocation and newAllocation objects.