post https://app.asana.com/api/1.0/allocations
Creates a new allocation.
Returns the full record of the newly created allocation.
Responses
Creates a new allocation.
Returns the full record of the newly created allocation.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/allocations \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
28{
"data": {
"gid": "12345",
"resource_type": "allocation",
"start_date": "2024-02-28",
"end_date": "2024-02-28",
"effort": {
"type": "hours",
"value": 50
},
"assignee": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"created_by": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"parent": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy"
},
"resource_subtype": "project_allocation"
}
}