[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Factivities\u002Fpostpone":3,"docs-tabs-entities\u002Factivities\u002Fpostpone":6},{"content":4,"lastmod":5},"\n## Postpone an activity\n\n`POST \u002Fv1\u002Factivities\u002F:id\u002Fpostpone`\n\nShifts the start, end and deadline of a CRM activity forward by the given number of seconds. Call it when the activity needs to move to a later time without calculating a new date.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Activity ID, a positive integer. List: [`GET \u002Fv1\u002Factivities`](\u002Fdocs\u002Fentities\u002Factivities\u002Flist) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `offset` | integer | yes | Shift in seconds, an integer greater than zero: `3600` — one hour, `86400` — one day. A number passed as a string, for example `\"3600\"`, is rejected. To move an activity to an earlier time, see [Change an activity deadline](\u002Fdocs\u002Fentities\u002Factivities\u002Fdeadline) |\n\nThe body accepts no other fields.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Factivities\u002F3894\u002Fpostpone\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"offset\": 3600}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Factivities\u002F3894\u002Fpostpone\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"offset\": 3600}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Factivities\u002F3894\u002Fpostpone', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ offset: 3600 }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('New deadline:', data.deadline)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Factivities\u002F3894\u002Fpostpone', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ offset: 3600 }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on a successful request |\n| `data` | object | The activity, read back after the shift. All fields: [Activity fields](\u002Fdocs\u002Fentities\u002Factivities\u002Ffields) |\n| `data.startTime` | datetime | Activity start after the shift |\n| `data.endTime` | datetime | Activity end after the shift |\n| `data.deadline` | datetime | Deadline after the shift |\n\n## Response example\n\nAn activity with the deadline `2026-10-22T12:00:00.000Z` postponed by one hour. The main fields are shown. Full list: [Activity fields](\u002Fdocs\u002Fentities\u002Factivities\u002Ffields).\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 3894,\n    \"ownerTypeId\": 3,\n    \"ownerId\": 17,\n    \"subject\": \"Call the client\",\n    \"completed\": false,\n    \"status\": 1,\n    \"startTime\": \"2026-10-22T13:00:00.000Z\",\n    \"endTime\": \"2026-10-22T13:15:00.000Z\",\n    \"deadline\": \"2026-10-22T13:00:00.000Z\",\n    \"updatedAt\": \"2026-10-19T11:47:47.000Z\"\n  }\n}\n```\n\n## Error response example\n\n400 — `offset` is not a positive integer:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"offset must be a positive integer in seconds\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `offset` is missing, zero, negative, fractional or passed as a string. Message: `offset must be a positive integer in seconds` |\n| 400 | `INVALID_PARAMS` | The body contains a field other than `offset`. Message: `Unsupported action field` |\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer. Message: `id must be a positive integer` |\n| 404 | `ENTITY_NOT_FOUND` | No activity with this `id` |\n| 422 | `ACTIVITY_POSTPONE_NOT_APPLIED` | Bitrix24 confirmed the shift, but the activity start, end and deadline did not change. This check is not performed for a task activity |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused to postpone the activity. The refusal text is in `message` |\n| 403 | `BITRIX_ACCESS_DENIED` | The key's user has no permission for this activity in Bitrix24 |\n| 502 | `BITRIX_ERROR` | The activity has no valid binding to a CRM entity. Message: `Activity has no valid CRM owner` |\n| 502 | `BITRIX_ERROR` | The shift was sent, but the activity could not be read back. Message: `Activity could not be read back`. Check the activity state with [`GET \u002Fv1\u002Factivities\u002F:id`](\u002Fdocs\u002Fentities\u002Factivities\u002Fget) |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 403 | `SCOPE_DENIED` | The API key does not have the `crm` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n\nFull list of common API errors: [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A completed activity is postponed too.** A call on a completed activity returns `200`: the start, end and deadline shift, and `completed` stays `true`.\n\n**For a task activity, the task deadline is shifted.** For an activity with `providerId` equal to `TASKS`, and for an activity with `typeId` equal to `3`, the deadline of the linked task is shifted. The time of the activity itself in `data` may stay the same. Read the new deadline from the task itself: [`GET \u002Fv1\u002Ftasks\u002F:id`](\u002Fdocs\u002Fentities\u002Ftasks\u002Fget).\n\n## See also\n\n- [Change an activity deadline](\u002Fdocs\u002Fentities\u002Factivities\u002Fdeadline)\n- [Complete an activity](\u002Fdocs\u002Fentities\u002Factivities\u002Fcomplete)\n- [Get an activity](\u002Fdocs\u002Fentities\u002Factivities\u002Fget)\n- [Activity fields](\u002Fdocs\u002Fentities\u002Factivities\u002Ffields)\n","2026-10-19",{},1795000258881]