Getting list of work rules
Getting list of work rules
Request
GET
https://fleet-api.taxi.yandex.net/v1/parks/driver-work-rules
Query parameters
|
Name |
Description |
|
park_id* |
Type: string Partner ID Example: |
Headers
|
Name |
Description |
|
Accept-Language* |
Type: string Preferred language of the response Example: Min length: |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID Example: Min length: |
Responses
200 OK
List of working conditions
Body
application/json
{
"rules": [
{
"id": "06640a5568bf4c238324d34fd1769a64",
"is_enabled": false,
"name": "In-house"
}
]
}
|
Name |
Description |
|
rules* |
Type: DriverWorkRule[] |
DriverWorkRule
|
Name |
Description |
|
id* |
Type: string Working condition ID Example: |
|
is_enabled* |
Type: boolean Whether the working condition is enabled |
|
name* |
Type: string Working condition name Example: |
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 |
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.