[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fepics\u002Fcreate":3,"docs-tabs-scrum\u002Fepics\u002Fcreate":6},{"content":4,"lastmod":5},"## Create an epic\n\n`POST \u002Fv1\u002Fscrum\u002Fepics`\n\nCreates an epic in a scrum project. The body is flat, with no `fields` wrapper.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | yes | Epic name. Up to 65,535 characters |\n| `groupId` | number | yes | Scrum project (workgroup) ID. List: `GET \u002Fv1\u002Fworkgroups` |\n| `description` | string | no | Epic description. Up to 65,535 characters |\n| `color` | string | no | Epic color, for example `\"#5eead4\"`. Up to 64 characters |\n| `createdBy` | number | no | Author ID. Defaults to the user the key belongs to. List: `GET \u002Fv1\u002Fusers` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"doc-verify create\",\n    \"groupId\": 45,\n    \"description\": \"Mirror of an epic from an external tracker\",\n    \"color\": \"#5eead4\"\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics \\\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 create\",\n    \"groupId\": 45,\n    \"description\": \"Mirror of an epic from an external tracker\",\n    \"color\": \"#5eead4\"\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'doc-verify create',\n    groupId: 45,\n    description: 'Mirror of an epic from an external tracker',\n    color: '#5eead4',\n  }),\n})\n\nconst { data } = await res.json()\nconsole.log('Epic ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fepics', {\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({\n    name: 'doc-verify create',\n    groupId: 45,\n    description: 'Mirror of an epic from an external tracker',\n    color: '#5eead4',\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 created epic |\n| `data.id` | number | ID of the created epic |\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. Equals `0` on creation |\n\n## Response example\n\n```json\n{\n    \"success\": true,\n    \"data\": {\n        \"id\": 11,\n        \"groupId\": 45,\n        \"name\": \"doc-verify create\",\n        \"description\": \"Mirror of an epic from an external tracker\",\n        \"createdBy\": 1,\n        \"modifiedBy\": 0,\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\": \"name is required\"\n    }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `name` or `groupId` is missing, or a value has the wrong type |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned an error while creating the epic, for example no scrum project exists with the given `groupId` |\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- **Access.** The Bitrix24 user the key acts as must have access to the scrum project to create epics. Otherwise Bitrix24 returns `422 BITRIX_ERROR` with the message \"Access denied\".\n\n## See also\n\n- [List epics](\u002Fdocs\u002Fscrum\u002Fepics\u002Flist)\n- [Get an epic](\u002Fdocs\u002Fscrum\u002Fepics\u002Fget)\n- [Update an epic](\u002Fdocs\u002Fscrum\u002Fepics\u002Fupdate)\n- [Workgroups](\u002Fdocs\u002Fentities\u002Fworkgroups)\n- [Scrum](\u002Fdocs\u002Fscrum)\n","2026-10-13",{},1794739601703]