Edits depot visit
Updates depot visit information by its ID.
HTTP Request
PATCH https://courier.yandex.ru/api/v1/companies/{company_id}/routes/{route_id}/depot-visits/{depot_visit_id}
Path Parameters
company_id * | integer Company ID used in requests to the Track & Trace API. |
route_id * | integer The ID of the route that is used in requests to the Track & Trace API. |
depot_visit_id * | integer Depot visit ID used in requests to the Track & Trace API. |
* Required parameter
Request Body
{ "status": string }
Copied to clipboard
Representation
Fields
status | string The current depot visit status. Possible values:
|
status | string The current depot visit status. Possible values:
|
* Required parameter
Responses
Code 200
Returns the updated depot visit.
{ "instance_id": integer, "status": string }
Copied to clipboard
Representation
Fields
status | string The current depot visit status. Possible values:
|
instance_id | integer The ID of the depot visit involved in the route. |
status | string The current depot visit status. Possible values:
|
instance_id | integer The ID of the depot visit involved in the route. |
* Required parameter
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 404
Object search error. Object not found.
Code 422
Incorrect input. The operation can't be performed.