Change the rental term associated with the car
Change the binding and consent status for data transfer to promote a rental offer
Request
PUT
https://fleet-api.taxi.yandex.net/v1/parks/vehicles/rent-details
Query parameters
|
Name |
Description |
|
vehicle_id* |
Type: string Vehicle ID Example: |
Headers
|
Name |
Description |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID Example: Min length: |
|
X-Park-ID* |
Type: string Partner ID Example: |
Body
application/json
{
"platform_channels_enabled": true,
"rent_term_id": "string"
}
|
Name |
Description |
|
platform_channels_enabled* |
Type: boolean Consent to transfer car data to platform acquisition channels Default: |
|
rent_term_id |
Type: string Rent term ID |
Responses
200 OK
Request has been successfully processed
Body
application/json
{}
400 Bad Request
Invalid request parameters Possible error codes:
- rule_not_found - A rule with such ID does not exist
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
404 Not Found
Requested resource was not found
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
No longer supported, please use an alternative and newer version.