Задачи · Изменение
Работа · Задачи · Перенос
work_task_reschedule
Попробуйте три запроса
Подготовить
- Вы указываетеTaskid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Работа / Задачи / Перенос». Для изменения нужны taskId, scheduledAt. Покажи объект и ожидаемый эффект до выполнения.
- taskId
- Параметр
- scheduledAt
- Параметр
- finishAt
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Работа / Задачи / Перенос» с параметром taskId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- taskId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Работа / Задачи / Перенос» по исходному ответу. Покажи taskId, тип операции. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Change the native scheduled start and optionally scheduled end; append the native Date postponed history event. Does not synchronize an external calendar or invoke a webhook.
Параметры запроса
- taskId
- Existing Companies/{connected company}/Task document identifier. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- scheduledAt
- New document.scegul start time as ISO 8601 with explicit timezone. обязательно по схеме · string
- finishAt
- Optional new scheduled end in document.finish. Omission preserves the existing end; this is not a completion timestamp. необязательно · string
Что вернёт команда
- taskId
- Canonical task affected by this recorded operation. обязательно по схеме · string
- operation
- Original task lifecycle action name. обязательно по схеме · string · варианты work_task_assign, work_task_set_status, work_task_complete, work_task_reschedule, work_task_set_comment, work_task_set_step_progress
- appliedFromRevision
- Historical revision checked before this operation. This is not the resulting or current task revision. обязательно по схеме · string
- changed
- Whether this operation changed native task fields. обязательно по схеме · boolean
- updatedFields
- Exact native fields changed by this operation; empty for a no-op. обязательно по схеме · array · до элементов 3
- event
- Native event appended by this operation, or null for operations without an event. обязательно по схеме · object / null
- sideEffects
- Only task fields were persisted. No webhook, calendar synchronization, notification or external action was invoked. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"taskId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing Companies/{connected company}/Task document identifier."
},
"expectedRevision": {
"type": "string",
"pattern": "^\\d{1,12}:\\d{1,9}$",
"description": "Exact current Firestore revision from work_task_edit_context or work_task_get_lifecycle. Read again after each committed change."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable unique request identifier. Preserve every argument when retrying this operation."
},
"scheduledAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "New document.scegul start time as ISO 8601 with explicit timezone."
},
"finishAt": {
"description": "Optional new scheduled end in document.finish. Omission preserves the existing end; this is not a completion timestamp.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"required": [
"taskId",
"expectedRevision",
"requestId",
"scheduledAt"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"taskId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Canonical task affected by this recorded operation."
},
"operation": {
"type": "string",
"enum": [
"work_task_assign",
"work_task_set_status",
"work_task_complete",
"work_task_reschedule",
"work_task_set_comment",
"work_task_set_step_progress"
],
"description": "Original task lifecycle action name."
},
"appliedFromRevision": {
"type": "string",
"pattern": "^\\d{1,12}:\\d{1,9}$",
"description": "Historical revision checked before this operation. This is not the resulting or current task revision."
},
"changed": {
"type": "boolean",
"description": "Whether this operation changed native task fields."
},
"updatedFields": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"users",
"status",
"scegul",
"finish",
"history",
"comment",
"progress"
],
"description": "Native field within document."
},
"description": "Exact native fields changed by this operation; empty for a no-op."
},
"event": {
"anyOf": [
{
"type": "object",
"properties": {
"Date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Server event timestamp in the native Date field, serialized as ISO 8601."
},
"Name": {
"type": "string",
"maxLength": 96,
"description": "Exact native event name."
},
"Comment": {
"type": "string",
"maxLength": 180,
"description": "Native event attribution using the server-verified employee identifier."
}
},
"required": [
"Date",
"Name",
"Comment"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Native event appended by this operation, or null for operations without an event."
},
"sideEffects": {
"type": "string",
"const": "task_fields_only",
"description": "Only task fields were persisted. No webhook, calendar synchronization, notification or external action was invoked."
}
},
"required": [
"taskId",
"operation",
"appliedFromRevision",
"changed",
"updatedFields",
"event",
"sideEffects"
],
"additionalProperties": false
}