Adds work breaks

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

Adds work breaks to the route.

HTTP Request

POST https://courier.yandex.ru/api/v1/companies/{company_id}/routes/{route_id}/work_breaks

Path Parameters

company_id *

integer

Company ID used in requests to the Track & Trace API.

route_id *

integer

Route ID used in requests to the Track & Trace API.

company_id *

integer

Company ID used in requests to the Track & Trace API.

route_id *

integer

Route ID used in requests to the Track & Trace API.

Request Body

[
  {
    "rest_duration_s": integer,
    "work_time_range_till_rest": string
  }
]
Copied to clipboard

Representation

Collapse all
Expand all

Fields

rest_duration_s *

integer

Duration of rest, seconds.

Minimum value: 1.

work_time_range_till_rest *

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]].

rest_duration_s *

integer

Duration of rest, seconds.

Minimum value: 1.

work_time_range_till_rest *

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]].

Responses

Code 200

Work breakes were added.

[
  {
    "id": integer,
    "sequence_pos": integer
  }
]
Copied to clipboard

Representation

Collapse all
Expand all

Fields

id *

integer

Work break ID used in requests to the Track & Trace API.

sequence_pos *

integer

Position of work break.

id *

integer

Work break ID used in requests to the Track & Trace API.

sequence_pos *

integer

Position of work break.

Code 401

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

Code 403

Error accessing the object. The user doesn't have the rights to access the object.

Code 422

Incorrect input. The operation can't be performed.