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>"
}
}Update a 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>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Request body schema.
Successful response
Updated territory details.
Show child attributes
Was this page helpful?