---
metadata:
  - name: generator
    content: Diplodoc Platform v5.47.1
alternate:
  - https://fleet.yandex.ru/docs/api/en/openapi/DriverWorkRules/v1parksdriver-work-rules-get.md
  - https://fleet.yandex.ru/docs/api/ru/openapi/DriverWorkRules/v1parksdriver-work-rules-get.md
---
> **Documentation Index:** Fetch the complete configuration index at https://fleet.yandex.ru/docs/api/en/llms.txt

<div class="openapi">

#  Getting list of work rules 

<!-- markdownlint-disable-file -->

 Getting list of work rules 

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://fleet-api.taxi.yandex.net/v1/parks/driver-work-rules
```

</div>

</div>

</div>

### Query parameters

#|
|| **Name** | **Description** ||
||

_park_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Partner ID 

_Example:_{.json-schema-reset .json-schema-example} `ee6f33c4562b4e1f8646d157bd70b2c4`
{.table-cell}
||
|#{.json-schema-properties}

### Headers

#|
|| **Name** | **Description** ||
||

_Accept-Language_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Preferred language of the response 

_Min length:_{.json-schema-reset .json-schema-assertion} `2`

_Example:_{.json-schema-reset .json-schema-example} `ru`
{.table-cell}
||
||

_X-API-Key_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 API-key 

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Example:_{.json-schema-reset .json-schema-example} `<API key>`
{.table-cell}
||
||

_X-Client-ID_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Client ID 

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Example:_{.json-schema-reset .json-schema-example} `<Client ID>`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

 List of working conditions 

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "rules": [
    {
      "id": "06640a5568bf4c238324d34fd1769a64",
      "is_enabled": true,
      "name": "In-house"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_rules_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DriverWorkRules](#entity-DriverWorkRules)

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": "06640a5568bf4c238324d34fd1769a64",
    "is_enabled": true,
    "name": "In-house"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### DriverWorkRuleId {#entity-DriverWorkRuleId}

 Working condition ID 

**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `06640a5568bf4c238324d34fd1769a64`

</div>

<div class="openapi-entity">

### DriverWorkRule {#entity-DriverWorkRule}

#|
|| **Name** | **Description** ||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DriverWorkRuleId](#entity-DriverWorkRuleId)

 Working condition ID 

_Example:_{.json-schema-reset .json-schema-example} `06640a5568bf4c238324d34fd1769a64`
{.table-cell}
||
||

_is_enabled_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean

 Whether the working condition is enabled 
{.table-cell}
||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Working condition name 

_Example:_{.json-schema-reset .json-schema-example} `In-house`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": "06640a5568bf4c238324d34fd1769a64",
  "is_enabled": true,
  "name": "In-house"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DriverWorkRules {#entity-DriverWorkRules}

**Type**: [DriverWorkRule](#entity-DriverWorkRule)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": "06640a5568bf4c238324d34fd1769a64",
    "is_enabled": true,
    "name": "In-house"
  }
]
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

 Request authorization parameters are missing 

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "example",
  "message": "Textual description of the error"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Human-readable error message 

_Example:_{.json-schema-reset .json-schema-example} `Textual description of the error`
{.table-cell}
||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

 Machine-readable error code 

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__403">

## 403 Forbidden

 Insufficient rights to execute the request 

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "example",
  "message": "Textual description of the error"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Human-readable error message 

_Example:_{.json-schema-reset .json-schema-example} `Textual description of the error`
{.table-cell}
||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

 Machine-readable error code 

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__429">

## 429 Too Many Requests

 Limit of requests was exceeded 

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "example",
  "message": "Textual description of the error"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Human-readable error message 

_Example:_{.json-schema-reset .json-schema-example} `Textual description of the error`
{.table-cell}
||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

 Machine-readable error code 

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

 Internal server error 

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "example",
  "message": "Textual description of the error"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

 Human-readable error message 

_Example:_{.json-schema-reset .json-schema-example} `Textual description of the error`
{.table-cell}
||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

 Machine-readable error code 

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.