API

Change district order

POST/api/crm/v2/districts.sortv2
operationId: districts.sort

Changes the order of districts. The sort object maps the district id to its new position and is accepted as a whole. Therefore, the list window confirms the new order with a single request, not with a request for each drag-and-drop action.

Authorization

api-token + language + role

Query parameters

branch_idintegerrequired

Example: 1

Request body application/json

object
sortobjectrequired
Dictionary values
integer

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject