Update Allocation
Allocations
Update Allocation
Updates an existing resource allocation. Requires both the old allocation data and the new allocation data.
Known Errors:
InvalidAllocationError— The new allocation is invalid:- Empty
allocatedHoursfield - The
fromdate is greater than or equal to thetodate - The date range exceeds 12 months
- Empty
AllocationNotFoundError— The specified old allocation cannot be foundAllocationAlreadyExistInDatesRangeError— The new allocation already exists within the specified date rangeUserNotFoundError— The specified user in new allocation cannot be foundUserNotHaveWorkDaysError— The user does not have any work days in the new allocation dates rangeProjectNotFoundError— The specified project in new allocation cannot be found
Note: You can use this endpoint to change a project allocation, as long as there isn’t an existing allocation for the same user in the target project for any date within the range of the new allocation.
PUT
Update 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
Response
Allocation updated successfully

