Получить прикрепленные файлы
Request
GET
https://api.wiki.yandex.net/v1/pages/{idx}/attachments
Path parameters
|
Name |
Description |
|
idx |
Type: integer |
Query parameters
|
Name |
Description |
|
cursor |
Type: string Example: `` |
|
order_by |
Type: string Если указано, отсортировать выдачу по полю в направлении Enum: |
|
order_direction |
All of: OrderDirection
Если указано поле Default: Example: `` |
|
page_size |
Type: integer Число результатов на странице выдачи. Default: Min value: Max value: |
Responses
200 OK
OK
Body
application/json
{
"results": [
{
"id": 0,
"name": "example",
"is_downloadable": true,
"download_url": "example",
"size": "example",
"description": "example",
"user": {
"id": 0,
"identity": null,
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"created_at": "2025-01-01T00:00:00Z",
"mimetype": "example",
"has_preview": true,
"check_status": "ready"
}
],
"next_cursor": "example",
"prev_cursor": "example"
}
|
Name |
Description |
|
results |
Type: AttachmentSchema[] Example
|
|
next_cursor |
Type: string Example: |
|
prev_cursor |
Type: string Example: |
UserIdentity
Идентификатор пользователя
|
Name |
Description |
|
cloud_uid |
Type: string Идентификатор пользователя в облаке (для внешнего инстанса) Example: |
|
uid |
Type: string Идентификатор пользователя в Яндекс (для внутреннего инстанса) Example: |
Example
{
"uid": "example",
"cloud_uid": "example"
}
UserSchema
Информация о пользователе
|
Name |
Description |
|
affiliation |
Type: string Принадлежность пользователя (например, Example: |
|
display_name |
Type: string Отображаемое имя пользователя Example: |
|
id |
Type: integer Внутренний идентификатор пользователя |
|
is_dismissed |
Type: boolean Пользователь уволен |
|
username |
Type: string Логин пользователя Example: |
|
identity |
All of 1 type
Идентификатор пользователя в системе Example
|
Example
{
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
}
FileCheckStatusType
Статус проверки файла антивирусом:
check— файл проверяетсяready— файл проверен и безопасенdeleted— файл удаленinfected— обнаружен вирусerror— ошибка при проверке
Type: string
Enum: check, ready, deleted, infected, error
AttachmentSchema
Прикрепленный файл к странице
|
Name |
Description |
|
created_at |
Type: string<date-time> Дата и время загрузки файла Example: |
|
description |
Type: string Описание файла Example: |
|
download_url |
Type: string URL для скачивания файла Example: |
|
has_preview |
Type: boolean Доступен ли предпросмотр файла |
|
id |
Type: integer Уникальный идентификатор файла |
|
mimetype |
Type: string MIME-тип файла Example: |
|
name |
Type: string Имя файла Example: |
|
size |
Type: string Размер файла Example: |
|
check_status |
All of 1 type
Статус проверки файла антивирусом Default: |
|
is_downloadable |
Type: boolean Доступен ли файл для скачивания Default: |
|
user |
All of 1 type
Пользователь, загрузивший файл Example
|
Example
{
"id": 0,
"name": "example",
"is_downloadable": true,
"download_url": "example",
"size": "example",
"description": "example",
"user": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"created_at": "2025-01-01T00:00:00Z",
"mimetype": "example",
"has_preview": true,
"check_status": "ready"
}