Applies general settings to the selected districts. districts_ids — districts to which the settings are applied, fields — which of the values below are applied. Anything not listed in fields will not be changed in the districts. The branch template — default values in the new district form and the settings block in GET /districts — is overwritten with all values from the request body, regardless of fields.
Authorization
api-token + language + role
Query parameters
branch_idintegerrequired
Example:1
Request body application/json
object
districts_idsarray of integerrequired
Districts to which the settings are applied; each ID must belong to a branch
fieldsarray of stringrequired
Request body values applied to these districts
operator_idintegerrequired
Example:1
delivery_timeintegerrequired
Delivery time
Example:60
other_delivery_time_enabledboolean
Example:false
other_delivery_timeintegerrequired
Increased delivery time during a specific period
Example:90
other_delivery_time_periodsstringrequired
Special delivery time period
Example:00:00 - 23:59
paid_delivery_enabledboolean
Paid delivery
Example:true
cost_of_deliverynumberrequired
Delivery cost
Example:100
minimum_order_amountnumberrequired
Minimum order amount
Example:200
free_delivery_fromnumberrequired
Order amount for free delivery
Example:400
other_minimum_order_amount_enabledboolean
Special minimum order amount enabled for a specific period
Example:true
other_minimum_order_amountnumberrequired
Minimum order amount for a specific period
Example:300
other_minimum_order_amount_periodsstringrequired
Example:00:00 - 23:59
other_minimum_order_amount_daysarray of integer
Days of the week for a special minimum order amount
redirect_district_idinteger
District to which orders are redirected after closure