Adds presets to the company.
Adds the passed presets of the company.
HTTP Request
POST https://courier.yandex.ru/api/v1/reference-book/companies/{company_id}/presets
Path Parameters
company_id * | integer The ID of the company whose presets you need to get. |
company_id * | integer The ID of the company whose presets you need to get. |
* Required parameter
Request Body
[ { "body": {}, "description": string, "number": string, "type": string } ]
Copied to clipboard
Representation
Fields
body * | object The preset body is in the form of json, the schema must match the preset type. |
description | string Description of the preset. |
number * | string Preset number. Cannot start with public_ and contain a comma character. |
type * | string The type of preset. Allowed values
|
body * | object The preset body is in the form of json, the schema must match the preset type. |
description | string Description of the preset. |
number * | string Preset number. Cannot start with public_ and contain a comma character. |
type * | string The type of preset. Allowed values
|
* Required parameter
Responses
Code 200
Presets have been successfully returned.
Code 400
Invalid JSON in POST request body.
Code 401
Authorization error. Make sure that the request header contains the correct OAuth token.
Code 403
You do not have access to this object.
Code 422
Incorrect input. Preset already exists.
Code 500
Server error during request processing.