curl --request POST \
--url https://api.getcargo.io/v1/revenueOrganization/capacities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "orange",
"description": "<string>",
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"filter": {
"conjonction": "or",
"groups": [
{}
]
}
}
'{
"capacity": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"name": "<string>",
"color": "orange",
"description": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"syncedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Create a new capacity
curl --request POST \
--url https://api.getcargo.io/v1/revenueOrganization/capacities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "orange",
"description": "<string>",
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"filter": {
"conjonction": "or",
"groups": [
{}
]
}
}
'{
"capacity": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"name": "<string>",
"color": "orange",
"description": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"syncedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body schema.
Capacity name.
Capacity color.
orange, red, purple, green, yellow, grey Capacity description.
Model identifier for capacity mapping.
Identifier column slug.
Time column slug.
Capacity per member.
Allocation expiration schedule.
Show child attributes
Filter criteria for capacity.
Show child attributes
Successful response
Created capacity details.
Show child attributes
Was this page helpful?