Updates the preset of the company by ID.

  1. HTTP Request
  2. Path Parameters
  3. Request Body
    1. Representation
    2. Fields
  4. Responses
    1. Code 200
    2. Code 400
    3. Code 401
    4. Code 403
    5. Code 422
    6. Code 500

Updates the preset of the company by ID.

HTTP Request

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

Path Parameters

company_id *

integer

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

preset_id *

string

ID of the preset in the reference book.

company_id *

integer

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

preset_id *

string

ID of the preset in the reference book.

Request Body

{
  "body": {},
  "description": string,
  "number": string
}
Copied to clipboard

Representation

Collapse all
Expand all

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.

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.

Responses

Code 200

Preset successfully updated.

Code 400

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

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. The preset is associated with some other company.

Code 500

Server error during request processing.