curl --request PUT \
--url https://api.getcargo.io/v1/revenueOrganization/capacities/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "orange",
"description": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"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>"
}
}Update a capacity
curl --request PUT \
--url https://api.getcargo.io/v1/revenueOrganization/capacities/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "orange",
"description": "<string>",
"memberCapacity": 123,
"allocationExpirationPolicy": {
"interval": "<string>",
"minute": 123
},
"modelUuid": "<string>",
"idColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"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.
Resource UUID
Request body schema.
Capacity name.
Capacity color.
orange, red, purple, green, yellow, grey Capacity description.
Capacity per member.
Allocation expiration schedule.
Show child attributes
Model identifier for capacity mapping.
Identifier column slug.
Time column slug.
Filter criteria for capacity.
Show child attributes
Successful response
Updated capacity details.
Show child attributes
Was this page helpful?