curl --request POST \
--url https://api.getcargo.io/v1/revenueOrganization/territories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"color": "orange",
"members": [
{
"uuid": "<string>",
"weight": 123
}
],
"description": "<string>",
"fallbackMemberUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"territory": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"label": "<string>",
"color": "orange",
"description": "<string>",
"members": [
{
"uuid": "<string>",
"weight": 123
}
],
"fallbackMemberUuid": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Create a new territory
curl --request POST \
--url https://api.getcargo.io/v1/revenueOrganization/territories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"color": "orange",
"members": [
{
"uuid": "<string>",
"weight": 123
}
],
"description": "<string>",
"fallbackMemberUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"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.
Request body schema.
Territory label.
Territory color.
orange, red, purple, green, yellow, grey Territory members.
Show child attributes
Territory description.
Fallback member identifier.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$Successful response
Created territory details.
Show child attributes
Was this page helpful?