Печать · Изменение
Печать · Очередь · Документы
printing_queue_document
Попробуйте три запроса
Подготовить
- Вы указываетеДокумент
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Печать / Очередь / Документы». Для изменения нужны документ, printerId. Покажи объект и ожидаемый эффект до выполнения.
- documentId
- Документ
- printerId
- Параметр
- language
- Язык
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Печать / Очередь / Документы» с параметром documentId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- documentId
- DEMO-101
- orderId
- DEMO-101
- printerId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Печать / Очередь / Документы» по исходному ответу. Покажи задание, printerId. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Prepare one native document and atomically queue one copy with a durable acceptance receipt. Requires current company-wide printing/document and linked task/order access. Same requestId is safe after response loss or queue consumption; changed arguments conflict. Use printing_get_operation_result and printing_resume_operation for recovery. Legacy pending jobs without atomic receipts are never blindly requeued. queued means queue acceptance, not physical printing.
Параметры запроса
- documentId
- Canonical company Documents template, order-document or task-document identifier. обязательно по схеме · string · до символов 128
- orderId
- Идентификатор выбранного заказа. необязательно · string · до символов 128
- printerId
- Canonical enabled printer ID returned by printing_list_printers. обязательно по схеме · string · до символов 128
- language
- Язык результата или локализуемого значения согласно схеме. обязательно по схеме · string · по умолчанию "en" · до символов 20
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- jobId
- Canonical Companies/{company}/print job identifier. обязательно по схеме · string
- printerId
- Selected canonical printer identifier. обязательно по схеме · string
- status
- The native queue accepted this request; this does not confirm physical printing. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"documentId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical company Documents template, order-document or task-document identifier."
},
"orderId": {
"description": "Canonical order ID for filling a reusable template. For an order-linked document this must equal its existing order association.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"printerId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical enabled printer ID returned by printing_list_printers."
},
"language": {
"default": "en",
"description": "Language used by the existing formatter.",
"type": "string",
"minLength": 2,
"maxLength": 20
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Unique ID for this exact one-copy print request; preserve it and all arguments for retries."
}
},
"required": [
"documentId",
"printerId",
"language",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"jobId": {
"type": "string",
"description": "Canonical Companies/{company}/print job identifier."
},
"printerId": {
"type": "string",
"description": "Selected canonical printer identifier."
},
"status": {
"type": "string",
"const": "queued",
"description": "The native queue accepted this request; this does not confirm physical printing."
}
},
"required": [
"jobId",
"printerId",
"status"
],
"additionalProperties": false
}