API

Change city order

POST/api/crm/v2/cities_sort.sortv2
operationId: citiesSort.sort

Changes the order of cities. The sort object maps city_id to position; the sort field of network branches in this area is updated. Position must be a number: non-numeric values are rejected with error 121, and variables.city_id refers to the record.
Errors:

  • 117 — missing field
  • 100 — unknown area or area not related to the cities
  • 168 — sort is not an object.

Authorization

api-token + language + role

Query parameters

chain_idintegerrequired

Example: 1

Request body application/json

object
zonestring

Example: ru

sortobjectrequired

Mapping [city_id]: sort_number

Dictionary values
integer

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject