Skip to main content
PUT
/
revenueOrganization
/
capacities
/
{uuid}
Update 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>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Request body schema.

name
string

Capacity name.

color
enum<string>

Capacity color.

Available options:
orange,
red,
purple,
green,
yellow,
grey
description
string | null

Capacity description.

memberCapacity
number | null

Capacity per member.

allocationExpirationPolicy
Allocation expiration policy · object

Allocation expiration schedule.

modelUuid
string | null

Model identifier for capacity mapping.

idColumnSlug
string | null

Identifier column slug.

timeColumnSlug
string | null

Time column slug.

filter
Filter · object

Filter criteria for capacity.

Response

Successful response

capacity
Capacity · object
required

Updated capacity details.