Updates the preset of the company by ID

Updates the preset of the company by ID.

Request

PATCH

https://courier.yandex.ru/api/v1/reference-book/companies/{company_id}/presets/{preset_id}

Path parameters

Name

Description

company_id*

Type: integer

The ID of the company whose presets you need to update.

preset_id*

Type: string

ID of the preset in the reference book.

Body

application/json
{
    "number": "string",
    "description": "string",
    "body": {}
}

Name

Description

body

Type: object

The preset body is in the form of JSON, the schema must match the preset type.

description

Type: string

Description of the preset.

Max length: 200

number

Type: string

Preset number. Cannot start with public_ and contain a comma character.

Max length: 80

Responses

200 OK

Deprecated

Preset successfully updated.

400 Bad Request

Deprecated

Invalid request body. Make sure that the request body is correct.

401 Unauthorized

Deprecated

Authorization error. Make sure that the request header contains the correct OAuth token.

403 Forbidden

Deprecated

You do not have access to this object.

422 Unprocessable Entity

Deprecated

Incorrect input. The preset is associated with some other company.

500 Internal Server Error

Deprecated

Server error during request processing.