sale.delivery.config.update
Scope: catalog Permissions to execute: for all
Method for updating delivery service.
JSON query schema:
{ "$id":"/schemas/methods/sale.delivery.config.update/request.json", "$schema":"http://json-schema.org/draft-07/schema", "title":"Delivery service config update schema", "required":[ "ID", "CONFIG" ], "type":"object", "properties":{ "ID":{ "$id":"#/properties/ID", "title":"Delivery service identifier", "type":"integer" }, "CONFIG":{ "$id":"#/properties/CONFIG", "title":"Delivery service config values", "type":"array", "items":{ "$id":"#/properties/CONFIG/items", "anyOf":[ { "$ref":"../../delivery.configitem.json" } ] } } } } }
Example:
Query:
https://my.bitrix24.com/rest/sale.delivery.config.update
JSON call:
{ ID: 687, CONFIG: [ { CODE: "SETTING_1", VALUE: "SETTING_1 new value", }, { CODE: "SETTING_2", VALUE: "SETTING_2 new value", }, ], }
JSON response:
{ result: true, time: { start: 1638369486.01651, finish: 1638369486.41351, duration: 0.3970000743865967, processing: 0.04800009727478027, date_start: "2021-12-01T16:38:06+02:00", date_finish: "2021-12-01T16:38:06+02:00", }, }
© «Bitrix24», 2001-2024