[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fsprints\u002Fcomplete":3,"docs-tabs-scrum\u002Fsprints\u002Fcomplete":6},{"content":4,"lastmod":5},"## Complete the active sprint\n\n`POST \u002Fv1\u002Fscrum\u002Fgroups\u002F:groupId\u002Fsprints\u002Factive\u002Fcomplete`\n\nCompletes the current active sprint of a scrum project. No sprint ID is passed: the method finds the active sprint by the group ID.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `groupId` (path) | number | yes | Scrum project ID. List of groups: [`GET \u002Fv1\u002Fworkgroups`](\u002Fdocs\u002Fentities\u002Fworkgroups\u002Flist) |\n\nNo request body is passed. If the request does send the `Content-Type: application\u002Fjson` header, pass an empty object `{}`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F211\u002Fsprints\u002Factive\u002Fcomplete \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F211\u002Fsprints\u002Factive\u002Fcomplete \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F211\u002Fsprints\u002Factive\u002Fcomplete', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data: sprint } = await res.json()\nconsole.log(sprint.id, sprint.status)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F211\u002Fsprints\u002Factive\u002Fcomplete', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data: sprint } = await res.json()\nconsole.log(sprint.id, sprint.status)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on successful completion |\n| `data` | object | The completed sprint |\n| `data.id` | number | Sprint ID |\n| `data.groupId` | number | Scrum project ID |\n| `data.entityType` | string | Record type, `sprint` |\n| `data.name` | string | Sprint name |\n| `data.goal` | string | Sprint goal |\n| `data.sort` | number | Sprint order within the project |\n| `data.createdBy` | number | ID of the sprint author |\n| `data.modifiedBy` | number | ID of the user who last changed the sprint |\n| `data.dateStart` | string | Sprint start in ISO 8601 format |\n| `data.dateEnd` | string | Completion time in ISO 8601 format |\n| `data.status` | string | `completed` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 45,\n    \"groupId\": 211,\n    \"entityType\": \"sprint\",\n    \"name\": \"Sprint 11\",\n    \"goal\": \"\",\n    \"sort\": 0,\n    \"createdBy\": 1317,\n    \"modifiedBy\": 1317,\n    \"dateStart\": \"2026-11-02T00:00:00+00:00\",\n    \"dateEnd\": \"2026-10-29T14:09:01+00:00\",\n    \"status\": \"completed\"\n  }\n}\n```\n\n## Error response example\n\n404 — the project has no active sprint, including when completion is called again:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Sprint not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `groupId` is not a positive integer |\n| 400 | `FST_ERR_CTP_EMPTY_JSON_BODY` | The `Content-Type: application\u002Fjson` header is passed with an empty body |\n| 404 | `ENTITY_NOT_FOUND` | The project has no active sprint, or no group with this `groupId` exists |\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 tokens configured |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **Completion rewrites the dates and order.** `dateEnd` is set to the completion time even if the planned end date has not yet arrived, and `sort` resets to `0`.\n\n## See also\n\n- [Active sprint](\u002Fdocs\u002Fscrum\u002Fsprints\u002Factive)\n- [Update a sprint](\u002Fdocs\u002Fscrum\u002Fsprints\u002Fupdate)\n- [Sprints](\u002Fdocs\u002Fscrum\u002Fsprints)\n","2026-11-02",{},1794739602564]