For AI agents: markdown of this page — /docs-content-en/entities/timelines/update.md documentation index — /llms.txt
Update comment
PATCH /v1/timelines/:id
Changes the text of an existing timeline comment. Pass only the comment field — the other fields (entityType, entityId, authorId, createdAt) are fixed on creation and cannot be changed via the API.
Frequently updated fields
| Field | Type | Description |
|---|---|---|
comment |
string | New comment text |
Full field list — GET /v1/timelines/fields.
Examples
curl — personal key
curl -X PATCH "https://vibecode.bitrix24.com/v1/timelines/66303" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"comment": "Follow-up: the client is ready to sign the contract next week"
}'
curl — OAuth application
curl -X PATCH "https://vibecode.bitrix24.com/v1/timelines/66303" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "Follow-up: the client is ready to sign the contract next week"
}'
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/timelines/66303', {
method: 'PATCH',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
comment: 'Follow-up: the client is ready to sign the contract next week',
}),
})
const { success, data } = await res.json()
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/timelines/66303', {
method: 'PATCH',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
comment: 'Follow-up: the client is ready to sign the contract next week',
}),
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
data |
object | Updated comment object — all fields, see Comment fields |
Response example
{
"success": true,
"data": {
"id": 66303,
"entityId": 741,
"entityType": "deal",
"comment": "Follow-up: the client is ready to sign the contract next week",
"authorId": 1,
"createdAt": "2026-04-24T12:34:05.000Z"
}
}
Error response example
404 — comment not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Item not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 404 | ENTITY_NOT_FOUND |
A comment with the specified ID does not exist |
| 403 | SCOPE_DENIED |
The API key lacks the crm scope |
| 401 | TOKEN_MISSING |
The API key has no configured tokens |
Full list of common API errors — Errors.
See also
- Get comment — current value of the comment
- Add comment — create a new one
- Delete comment
- Batch — bulk comment updates
- Limits and optimization — rate limits