Add or Update Territories of a User
PUT {{api-domain}}/crm/v4/users/{{user_id}}/territories
To retrieve the users' data specified in the API request. You can specify the type of users that needs to be retrieved using the Users API. For example, use type=AllUsers, to get the list of all the CRM users available.
Refer to help doc to know more.
Request Body
{"territories"=>[{"id"=>"{{territory_id}}"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"territories":[{"code":"SUCCESS","details":{"id":"4876876000001214014"},"message":"Territory associated to the user successfully","status":"success"}]}