---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/support/wiki/en/api-ref/index.md
  - https://yandex.ru/support/wiki/ru/api-ref/index.md
  - href: ru/api-ref/index.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/ru/llms.txt

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

# Wiki Public API

##version: 1.0.0##


### Формат ошибок

В общем виде сообщение об ошибке представляет собой следующую структуру:
```(json)
{
    "debug_message": "",
    "details": {},
    "error_code": ""
}
```
Например:
```(json)
{
    "debug_message": "Validation failed",
    "details": {
        "body": {
            "data": [
                {
                    "debug_message": "field required",
                    "error_code": "value_error.missing"
                }
            ]
        }
    },
    "error_code": "VALIDATION_ERROR"
}
```

В первую очередь нужно ориентироваться на error_code. В debug_message представлено текстовое описание ошибки. В detail, при необходимости, будет дополнительная информация (или null, если такой необходимости нет).

#### Формат сообщения в случае ошибки валидации
```(json)
{
    "debug_message": "Validation failed",
    "details": {
        "<source>": {
            "<field>": [
                {
                    "debug_message": "<validation debug message>",
                    "error_code": "<validation error code>"
                }
            ]
        }
    },
    "error_code": "VALIDATION_ERROR"
}
```

```<source>``` — источник данных в котором произошла ошибка валидации, возможные значения ```[body, query]```

```<field>``` — имя поля, не прошедшее валидацию, значением является список, в котором хранятся локальные debug_message и error_code с деталями об ошибке.



## Sections

- [Страницы](https://yandex.ru/support/wiki/ru/api-ref/pages/index.md)
- [Прикрепленные файлы](https://yandex.ru/support/wiki/ru/api-ref/attachments/index.md)
- [Доступы к страницам](https://yandex.ru/support/wiki/ru/api-ref/pages_access/index.md)
- [Ресурсы страниц](https://yandex.ru/support/wiki/ru/api-ref/pagesresources/index.md)
- [Комментарии](https://yandex.ru/support/wiki/ru/api-ref/comments/index.md)
- [Динамические таблицы](https://yandex.ru/support/wiki/ru/api-ref/grids/index.md)
- [Пользователи](https://yandex.ru/support/wiki/ru/api-ref/users/index.md)
- [Сессии загрузки](https://yandex.ru/support/wiki/ru/api-ref/upload_sessions/index.md)
- [Операции](https://yandex.ru/support/wiki/ru/api-ref/operations/index.md)
- [Восстановление страниц](https://yandex.ru/support/wiki/ru/api-ref/recovery_tokens/index.md)
- [Поиск](https://yandex.ru/support/wiki/ru/api-ref/search/index.md)
