Adds route plans

Adds info about route plans.

Request

POST

https://courier.yandex.ru/api/v1/companies/{company_id}/route-plans

Path parameters

Name

Description

company_id*

Type: integer

The ID of the company that is used in requests to the Track & Trace API.

Body

application/json
[
    {
        "number": "string",
        "nodes": [
            null
        ]
    }
]

RoutePlans[]

RoutePlans

Route plan.

Name

Description

nodes*

Type: any[]

Planned route nodes.

number*

Type: string

Route number.

Responses

200 OK

Deprecated

Route plans were added.

401 Unauthorized

Deprecated

Authorization failed. Send the correct OAuth token in the authorization header.

403 Forbidden

Deprecated

You do not have access to this object.

422 Unprocessable Entity

Deprecated

Incorrect input.