Документы · Чтение
Документы · Список · Для · Задачи
documents_list_for_task
Попробуйте три запроса
Получить данные
- Вы указываетеTaskid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Документы / Список / Для / Задачи» выполни чтение по выбранной записи (taskId). Выведи кратко: список позиций, nextId.
- items
- Список позиций
- nextId
- Поле ответа
Задать параметры
- Вы указываетеTaskid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Документы / Список / Для / Задачи» на учебном примере с taskId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- taskId
- DEMO-101
- limit
- 3
- afterId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Документы / Список / Для / Задачи» объясни список позиций, nextId. Отметь отсутствующие значения.
- items
- Список позиций
- nextId
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
List native documents linked exactly to one accessible task. The server verifies its company and current access before querying document metadata. Use the returned document IDs and revisions for editing, PDF export, or an explicitly confirmed deletion.
Параметры запроса
- taskId
- Canonical existing task identifier. обязательно по схеме · string · до символов 128
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- afterId
- Last document ID from the previous page of this same parent. необязательно · string · до символов 128
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
- nextId
- Last returned document ID when another page exists, otherwise null. обязательно по схеме · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"taskId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing task identifier."
},
"limit": {
"default": 20,
"description": "Maximum document summaries returned.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"afterId": {
"description": "Last document ID from the previous page of this same parent.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
}
},
"required": [
"taskId",
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"documentId": {
"type": "string",
"description": "Canonical Companies/{company}/Documents document identifier."
},
"names": {
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"language": {
"type": "string",
"maxLength": 20,
"description": "Stored language code preview."
},
"name": {
"type": "string",
"maxLength": 300,
"description": "Stored localized template name preview."
}
},
"required": [
"language",
"name"
],
"additionalProperties": false
},
"description": "Preview of up to three existing document names; the complete name array is available in native layout reads."
},
"namesTruncated": {
"type": "boolean",
"description": "True when names or their preview strings were shortened; read the native layout chunks for complete names."
},
"totalNameCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Total number of stored localized names before preview limits."
},
"itemCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Number of native layout items."
},
"template": {
"type": "boolean",
"description": "True when this record is not linked to an order or task."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Content revision token. Pass unchanged when updating or deleting to detect concurrent edits."
}
},
"required": [
"documentId",
"names",
"namesTruncated",
"totalNameCount",
"itemCount",
"template",
"revision"
],
"additionalProperties": false
},
"description": "Documents linked exactly to the selected order or task."
},
"nextId": {
"description": "Last returned document ID when another page exists, otherwise null.",
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextId"
],
"additionalProperties": false
}