Skip to main content
DELETE
/
allocation
/
removeAllocation
Delete Allocation
curl --request DELETE \
  --url https://planner.svc.v2.projectcor.com/allocation/removeAllocation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": 1111,
  "companyId": 111,
  "resource": {
    "typeId": "Project",
    "entityId": 1111
  },
  "from": "2024-01-01",
  "to": "2024-03-31",
  "assignedByUserId": 11111,
  "allocatedHours": 20
}
'
{
  "error": "AllocationNotFoundError",
  "message": "The specified allocation cannot be found"
}

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

Body

application/json
userId
integer
required

ID of the user being allocated

companyId
integer
required

Company ID

resource
object
required
from
string<date>
required

Start date (YYYY-MM-DD)

to
string<date>
required

End date (YYYY-MM-DD). Must be after 'from' date and within 12 months.

assignedByUserId
integer
required

ID of the user who assigned the allocation

allocatedHours
number
required

Number of hours allocated

email
string<email>

User email (optional)

Response

Allocation deleted successfully