Skip to main content
PUT
/
revenueOrganization
/
territories
/
{uuid}
Update territory
curl --request PUT \
  --url https://api.getcargo.io/v1/revenueOrganization/territories/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "color": "orange",
  "description": "<string>",
  "members": [
    {
      "uuid": "<string>",
      "weight": 123
    }
  ],
  "fallbackMemberUuid": "<string>"
}
'
{
  "territory": {
    "uuid": "<string>",
    "workspaceUuid": "<string>",
    "label": "<string>",
    "color": "orange",
    "description": "<string>",
    "members": [
      {
        "uuid": "<string>",
        "weight": 123
      }
    ],
    "fallbackMemberUuid": "<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.

label
string

Territory label.

color
enum<string>

Territory color.

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

Territory description.

members
Members · object[]

Territory members.

fallbackMemberUuid
string | null

Fallback member identifier.

Response

Successful response

territory
Territory · object
required

Updated territory details.