Save Allocation
Allocations
Save Allocation
Creates a new resource allocation for a user on a project.
Request Body Requirements: All values in the object are required.
Known Errors:
InvalidAllocationError— The allocation is invalid:- Empty
allocatedHoursfield - The
fromdate is greater than or equal to thetodate - The date range exceeds 12 months
- Empty
AllocationAlreadyExistInDatesRangeError— An allocation already exists within the specified date rangeUserNotFoundError— The specified user cannot be foundUserNotHaveWorkDaysError— The user does not have any work days configuredProjectNotFoundError— The specified project cannot be found
POST
Save Allocation
Authorizations
Uses the same authentication as the main COR API. Obtain a token from https://api.projectcor.com/v1/oauth/token
Body
application/json
ID of the user being allocated
Company ID
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD). Must be after 'from' date and within 12 months.
ID of the user who assigned the allocation
Number of hours allocated
User email (optional)
Response
Allocation saved successfully

