[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fepics\u002Fupdate":3,"docs-tabs-scrum\u002Fepics\u002Fupdate":6},{"content":4,"lastmod":5},"## Update an epic\n\n`PATCH \u002Fv1\u002Fscrum\u002Fepics\u002F:id`\n\nPartially updates a scrum-project epic: rename, recolor, change the description or the scrum project. The body is flat, with no `fields` wrapper.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Epic ID |\n\n## Request fields (body)\n\nPass only the fields you want to change. At least one of the listed fields is required.\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | no | New epic name. Up to 65,535 characters |\n| `groupId` | number | no | New scrum project ID. List: `GET \u002Fv1\u002Fworkgroups` |\n| `description` | string | no | New description. Up to 65,535 characters |\n| `color` | string | no | New epic color, for example `\"#5eead4\"`. Up to 64 characters |\n| `modifiedBy` | number | no | ID of the user who modified the epic. List: `GET \u002Fv1\u002Fusers` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics\u002F9 \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"doc-verify epic\",\n    \"description\": \"x\",\n    \"color\": \"#5eead4\",\n    \"modifiedBy\": 1\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics\u002F9 \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"doc-verify epic\",\n    \"description\": \"x\",\n    \"color\": \"#5eead4\",\n    \"modifiedBy\": 1\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics\u002F9', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'doc-verify epic',\n    description: 'x',\n    color: '#5eead4',\n    modifiedBy: 1,\n  }),\n})\n\nconst { data } = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics\u002F9', {\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({\n    name: 'doc-verify epic',\n    description: 'x',\n    color: '#5eead4',\n    modifiedBy: 1,\n  }),\n})\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 epic after the update |\n| `data.id` | number | Epic ID |\n| `data.groupId` | number | Scrum project ID |\n| `data.name` | string | Epic name |\n| `data.description` | string | Epic description |\n| `data.color` | string | Epic color |\n| `data.createdBy` | number | Author ID |\n| `data.modifiedBy` | number | ID of the last editor |\n\n## Response example\n\n```json\n{\n    \"success\": true,\n    \"data\": {\n        \"id\": 9,\n        \"groupId\": 45,\n        \"name\": \"doc-verify epic\",\n        \"description\": \"x\",\n        \"createdBy\": 1,\n        \"modifiedBy\": 1,\n        \"color\": \"#5eead4\"\n    }\n}\n```\n\n## Error response example\n\n400 — validation failed:\n\n```json\n{\n    \"success\": false,\n    \"error\": {\n        \"code\": \"INVALID_PARAMS\",\n        \"message\": \"At least one of name, groupId, description, color, createdBy, modifiedBy is required\"\n    }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | Empty body, non-numeric `id`, wrong field type, or `createdBy` passed |\n| 404 | `ENTITY_NOT_FOUND` | No epic exists with the given `id` |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned an error while updating the epic |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only |\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**`createdBy` is set only on creation.** On update this field is rejected with `400 INVALID_PARAMS` and the message \"createdBy can only be set on create\". Authorship cannot be transferred — to record who made the change, use `modifiedBy`.\n\n## See also\n\n- [Create an epic](\u002Fdocs\u002Fscrum\u002Fepics\u002Fcreate)\n- [Get an epic](\u002Fdocs\u002Fscrum\u002Fepics\u002Fget)\n- [List epics](\u002Fdocs\u002Fscrum\u002Fepics\u002Flist)\n- [Workgroups](\u002Fdocs\u002Fentities\u002Fworkgroups)\n- [Scrum](\u002Fdocs\u002Fscrum)\n","2026-10-13",{},1794739602075]