comment.updated
Комментарий задачи · изменение.
Типы SDK
Python: from shtab_sdk.events import CommentUpdated
TypeScript: import type { CommentUpdated } 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— Данные для идентификации удалённого ресурса.
Значения changed_fields: comment, files, pinned, resolved.
Пример доставки
{
"delivery_id": "d94a840b-0e61-4af1-89cd-b5cbbd6d02da",
"events": [
{
"event_id": "ea49f33e-a606-4872-8d3d-ad9e092fa97b",
"type": "comment.updated",
"occurred_at": "2026-11-23T10:00:00Z",
"resource_type": "comment",
"resource_id": 42,
"task_id": null,
"project_id": null,
"actor_id": null,
"origin": "app",
"changed_fields": [],
"body": {
"id": 42,
"external_id": "Пример",
"task": 42,
"object_id": 42,
"comment": "Пример",
"author": {
"id": 42,
"first_name": "Пример",
"last_name": "Пример",
"full_name": "Пример"
},
"answer_to": {
"id": 42,
"comment": "Пример",
"author": {
"id": 42,
"first_name": "Пример",
"last_name": "Пример",
"full_name": "Пример"
},
"datetime_created": "Пример"
},
"thread_root_id": null,
"datetime_created": "Пример",
"datetime_updated": "Пример",
"deleted_at": "2026-11-23T10:00:00Z",
"is_deleted": false,
"pinned": false,
"resolved": false,
"quote_text": "Пример",
"files": []
},
"tombstone": null
}
]
}
Схема события
{
"type": "object",
"properties": {
"event_id": {
"type": "string"
},
"type": {
"const": "comment.updated"
},
"occurred_at": {
"type": "string"
},
"resource_type": {
"const": "comment"
},
"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/PublicTaskComment"
},
{
"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"
]
}
PublicTaskComment
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"external_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"task": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"object_id": {
"type": "integer"
},
"comment": {
"type": "string"
},
"author": {
"anyOf": [
{
"$ref": "#/definitions/PublicUser"
},
{
"type": "null"
}
]
},
"answer_to": {
"anyOf": [
{
"$ref": "#/definitions/PublicTaskCommentAnswer"
},
{
"type": "null"
}
]
},
"thread_root_id": {},
"datetime_created": {
"type": "string"
},
"datetime_updated": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"deleted_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"is_deleted": {
"type": "boolean"
},
"pinned": {
"type": "boolean"
},
"resolved": {
"type": "boolean"
},
"quote_text": {
"type": "string"
},
"files": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/PublicCommentFile"
},
{
"type": "null"
}
]
}
},
{
"type": "null"
}
]
}
},
"required": [
"id"
]
}
PublicCommentFile
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"extension": {
"type": "string"
},
"size": {
"type": "integer"
},
"size_kb": {},
"url": {
"type": "string"
},
"created_at": {
"type": "string"
}
},
"required": [
"id"
]
}
PublicTaskCommentAnswer
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"comment": {
"type": "string"
},
"author": {
"anyOf": [
{
"$ref": "#/definitions/PublicUser"
},
{
"type": "null"
}
]
},
"datetime_created": {
"type": "string"
}
},
"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"
]
}