task.restored
Задача · восстановление.
Типы SDK
Python: from shtab_sdk.events import TaskRestored
TypeScript: import type { TaskRestored } from '@shtab/sdk/webhooks'.
Поля события
-
event_id— Идентификатор события для дедупликации. -
type— Тип события. -
occurred_at— Время события в ISO 8601. -
resource_type— Тип ресурса. -
resource_id— ID ресурса. -
task_id— Связанная задача. -
project_id— Связанный проект. -
actor_id— Пользователь, совершивший действие. -
origin— Канал изменения. -
changed_fields— Имена затронутых полей. -
body— Данные ресурса, если доступны. -
tombstone— Данные для идентификации удалённого ресурса.
Пример доставки
{
"delivery_id": "d94a840b-0e61-4af1-89cd-b5cbbd6d02da",
"events": [
{
"event_id": "ea49f33e-a606-4872-8d3d-ad9e092fa97b",
"type": "task.restored",
"occurred_at": "2026-11-23T10:00:00Z",
"resource_type": "task",
"resource_id": 42,
"task_id": null,
"project_id": null,
"actor_id": null,
"origin": "app",
"changed_fields": [],
"body": {
"id": 42,
"external_id": "Пример",
"version": 42,
"name": "Пример",
"slug": "Пример",
"datasource": 42,
"type": null,
"status": {
"id": 42,
"title": "Пример",
"color": "Пример",
"icon": null,
"segment": "todo",
"order": 42,
"is_default": false
},
"stage": {
"id": 42,
"name": "Пример",
"color": "Пример",
"order": 42
},
"group": {
"id": 42,
"name": "Пример",
"order": 42
},
"parent": 42,
"order": 42,
"priority": "critical",
"progress": 42,
"archived": false,
"completed": false,
"date_created": "Пример",
"date_updated": "Пример",
"date_completed": "Пример",
"date_archived": "Пример",
"date_start": "Пример",
"date_start_time": "Пример",
"deadline": "Пример",
"deadline_time": "Пример",
"planned_time_minutes": 42,
"planned_time_type": "minute",
"tracked_seconds": null,
"executors": [],
"responsibles": [],
"task_labels": [],
"custom_fields": null,
"created_by_id": null,
"updated_by": {
"id": 42,
"first_name": "Пример",
"last_name": "Пример",
"full_name": "Пример"
},
"subtasks_count": 42,
"comments_count": 42,
"files_count": 42
},
"tombstone": null
}
]
}
Схема события
{
"type": "object",
"properties": {
"event_id": {
"type": "string"
},
"type": {
"const": "task.restored"
},
"occurred_at": {
"type": "string"
},
"resource_type": {
"const": "task"
},
"resource_id": {
"type": "integer"
},
"task_id": {
"type": [
"integer",
"null"
]
},
"project_id": {
"type": [
"integer",
"null"
]
},
"actor_id": {
"type": [
"integer",
"null"
]
},
"origin": {
"type": "string"
},
"changed_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"body": {
"anyOf": [
{
"$ref": "#/definitions/PublicTask"
},
{
"type": "null"
}
]
},
"tombstone": {
"type": "null"
}
},
"required": [
"event_id",
"type",
"occurred_at",
"resource_type",
"resource_id",
"task_id",
"project_id",
"actor_id",
"origin",
"changed_fields",
"body",
"tombstone"
]
}
PublicTask
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"external_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"version": {
"type": "integer"
},
"name": {
"type": "string"
},
"slug": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"datasource": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"type": {},
"status": {
"anyOf": [
{
"$ref": "#/definitions/PublicStatus"
},
{
"type": "null"
}
]
},
"stage": {
"anyOf": [
{
"$ref": "#/definitions/PublicStage"
},
{
"type": "null"
}
]
},
"group": {
"anyOf": [
{
"$ref": "#/definitions/PublicGroup"
},
{
"type": "null"
}
]
},
"parent": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"order": {
"type": "number"
},
"priority": {
"enum": [
"critical",
"high",
"medium",
"low"
]
},
"progress": {
"type": "integer"
},
"archived": {
"type": "boolean"
},
"completed": {
"type": "boolean"
},
"date_created": {
"type": "string"
},
"date_updated": {
"type": "string"
},
"date_completed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"date_archived": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"date_start": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"date_start_time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"deadline": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"deadline_time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"planned_time_minutes": {
"type": "integer"
},
"planned_time_type": {
"enum": [
"minute",
"hour",
"day",
"week",
"month"
]
},
"tracked_seconds": {},
"executors": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/PublicTaskExecutor"
},
{
"type": "null"
}
]
}
},
{
"type": "null"
}
]
},
"responsibles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/PublicTaskResponsible"
},
{
"type": "null"
}
]
}
},
{
"type": "null"
}
]
},
"task_labels": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/PublicLabel"
},
{
"type": "null"
}
]
}
},
{
"type": "null"
}
]
},
"custom_fields": {},
"created_by_id": {},
"updated_by": {
"anyOf": [
{
"$ref": "#/definitions/PublicUser"
},
{
"type": "null"
}
]
},
"subtasks_count": {
"type": "integer"
},
"comments_count": {
"type": "integer"
},
"files_count": {
"type": "integer"
}
},
"required": [
"id"
]
}
PublicGroup
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"order": {
"type": "number"
}
},
"required": [
"id"
]
}
PublicLabel
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"id"
]
}
PublicStage
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"order": {
"type": "number"
}
},
"required": [
"id"
]
}
PublicStatus
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"title": {
"type": "string"
},
"color": {
"type": "string"
},
"icon": {},
"segment": {
"enum": [
"todo",
"in_progress",
"done",
"cancelled"
]
},
"order": {
"type": "number"
},
"is_default": {
"type": "boolean"
}
},
"required": [
"id"
]
}
PublicTaskExecutor
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"member_type": {},
"member": {},
"finished": {
"type": "boolean"
}
},
"required": [
"id"
]
}
PublicTaskResponsible
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"member_type": {},
"member": {},
"is_confirmed_closing": {
"type": "boolean"
}
},
"required": [
"id"
]
}
PublicUser
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"first_name": {
"type": "string"
},
"last_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"full_name": {
"type": "string"
}
},
"required": [
"id"
]
}