[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Ftasks\u002Fupdate":3,"docs-tabs-scrum\u002Ftasks\u002Fupdate":6},{"content":4,"lastmod":5},"## Place or move a task in scrum\n\n`PATCH \u002Fv1\u002Fscrum\u002Ftasks\u002F:taskId`\n\nPlaces a task in scrum, moves it between the backlog, sprints and epics, and sets story points and sort order. Pass only the fields you want to change.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `taskId` | number | yes | Task ID (path parameter). Source: [`GET \u002Fv1\u002Ftasks`](\u002Fdocs\u002Fentities\u002Ftasks\u002Flist) |\n\n## Request fields (body)\n\nAt least one field is required.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `epicId` | number | Epic to bind the task to. `0` — unbind from the epic. Source: [`GET \u002Fv1\u002Fscrum\u002Fepics`](\u002Fdocs\u002Fscrum\u002Fepics\u002Flist) |\n| `entityId` | number | Backlog or sprint ID. Resolved automatically — pass it explicitly only to place the task into a specific sprint |\n| `storyPoints` | string \\| number | Story points, for example `\"3\"` or `\"0.5\"`. An empty string clears them |\n| `sort` | number | Position in the list |\n| `sortFloat` | number | Position in the list. Takes priority over `sort` |\n| `modifiedBy` | number | ID of the user who made the change. Source: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist). The placement's `createdBy` does not change |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Ftasks\u002F59 \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"epicId\": 11, \"storyPoints\": \"3\" }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Ftasks\u002F59 \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"epicId\": 11, \"storyPoints\": \"3\" }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Ftasks\u002F59', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ epicId: 11, storyPoints: '3' }),\n})\nconst { data } = await res.json()\nconsole.log('Placement:', data)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Ftasks\u002F59', {\n  method: 'PATCH',\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({ epicId: 11, storyPoints: '3' }),\n})\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | object | The task placement after the change |\n| `data.entityId` | number | ID of the backlog or sprint the task is in |\n| `data.epicId` | number | Epic ID. `0` — the task is not bound to an epic |\n| `data.storyPoints` | string | Story points, for example `\"3\"`. Empty string — not set |\n| `data.sort` | number | Position in the list |\n| `data.sortFloat` | number | Position in the list. Takes priority over `sort` |\n| `data.createdBy` | number | ID of the placement author |\n| `data.modifiedBy` | number | ID of the last editor |\n| `data.groupId` | number | ID of the task's scrum project. List: [`GET \u002Fv1\u002Fworkgroups`](\u002Fdocs\u002Fentities\u002Fworkgroups\u002Flist) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"entityId\": 1,\n    \"storyPoints\": \"3\",\n    \"epicId\": 11,\n    \"sort\": 255,\n    \"sortFloat\": 512,\n    \"createdBy\": 1,\n    \"modifiedBy\": 1,\n    \"groupId\": 45\n  }\n}\n```\n\n## Error response example\n\n400 — the task has no workgroup, so auto-placement into the backlog is impossible:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"TASK_NOT_IN_GROUP\",\n    \"message\": \"Task 289 has no workgroup (GROUP_ID), so it cannot be placed in scrum. Move the task into a scrum project first (PATCH \u002Fv1\u002Ftasks\u002F:id { \\\"groupId\\\": N }) or pass entityId explicitly.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | Empty body, a non-numeric field, or an attempt to set `createdBy` |\n| 400 | `TASK_NOT_IN_GROUP` | `entityId` is omitted, and the task has no workgroup or no task with this `taskId` exists — auto-placement into the backlog is impossible. Move the task into a scrum project via `PATCH \u002Fv1\u002Ftasks\u002F:id { \"groupId\": N }` or pass `entityId` explicitly |\n| 404 | `ENTITY_NOT_FOUND` | `entityId` is passed, and no task with this `taskId` exists |\n| 422 | `BACKLOG_NOT_RESOLVED` | The task's workgroup is not a scrum project, so no backlog is found |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned another error — for example, the `groupId` of the epic and the task do not match |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **The backlog is resolved automatically.** If `entityId` is omitted and the task is not yet in scrum, the API finds the backlog of the task's scrum project by its workgroup and places the task there. A task already placed in scrum keeps its current backlog or sprint.\n- **Access.** To place tasks, the Bitrix24 user the key acts as must have access to the task's scrum project. Otherwise Bitrix24 returns `422 BITRIX_ERROR` with the message \"Access denied\".\n\n## See also\n\n- [Get a task's scrum placement](\u002Fdocs\u002Fscrum\u002Ftasks\u002Fget)\n- [List epics](\u002Fdocs\u002Fscrum\u002Fepics\u002Flist)\n- [Scrum](\u002Fdocs\u002Fscrum)\n- [Tasks](\u002Fdocs\u002Fentities\u002Ftasks)\n","2026-10-13",{},1794739604030]