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": "<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>"
}
}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": "<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.
Request body schema.
Territory label.
Territory color.
orange, red, purple, green, yellow, grey Territory members.
Show child attributes
Territory description.
Fallback member identifier.
Successful response
Created territory details.
Show child attributes
Was this page helpful?