[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fdod\u002Fsettings":3,"docs-tabs-scrum\u002Fdod\u002Fsettings":6},{"content":4,"lastmod":5},"## Get DoD settings\n\n`GET \u002Fv1\u002Fscrum\u002Fgroups\u002F:groupId\u002Fdod\u002Fsettings`\n\nReturns the Definition of Done types of a scrum project: the name, order, whether the checklist is required, and the participants of each type.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|-------|-----------|----------|\n| `groupId` (path) | number | yes | — | Scrum project ID. List: [`GET \u002Fv1\u002Fworkgroups`](\u002Fdocs\u002Fentities\u002Fworkgroups\u002Flist) |\n| `saveRequest` (query) | string | no | `Y` | Accepts `Y` or `N`. On the projects checked, the response is the same for both values |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fdod\u002Fsettings\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fdod\u002Fsettings\" \\\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\u002F45\u002Fdod\u002Fsettings', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nfor (const type of data.types) {\n  console.log(type.id, type.name, type.dodRequired)\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fdod\u002Fsettings', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\nfor (const type of data.types) {\n  console.log(type.id, type.name, type.dodRequired)\n}\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data.types` | array | The project's DoD types. A non-scrum workgroup the user belongs to returns success with an empty array |\n| `data.types[].id` | number | Type ID. Accepted by [saving the type's settings](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsave-settings) and [saving a task's DoD list](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsave-list) |\n| `data.types[].entityId` | number | ID of the scrum project backlog the type belongs to |\n| `data.types[].name` | string | Type name |\n| `data.types[].sort` | number | Position of the type in the list |\n| `data.types[].dodRequired` | string | `Y` — the DoD checklist is required for tasks of this type, `N` — it is not |\n| `data.types[].participants` | array | Type participants in the format `{ \"id\": 1, \"entityId\": \"user\" }` |\n| `data.activeTypeId` | number | `0` when reading project settings |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"types\": [\n      {\n        \"id\": 1,\n        \"entityId\": 1,\n        \"name\": \"Product task\",\n        \"sort\": 1,\n        \"dodRequired\": \"Y\",\n        \"participants\": []\n      },\n      {\n        \"id\": 3,\n        \"entityId\": 1,\n        \"name\": \"Technical task\",\n        \"sort\": 2,\n        \"dodRequired\": \"N\",\n        \"participants\": []\n      }\n    ],\n    \"activeTypeId\": 0\n  }\n}\n```\n\n## Error response example\n\n422 — the project does not exist or the user has no access to it:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"You don't have access.\",\n    \"b24Code\": \"TASKS_SDC_02\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `groupId` is not a positive integer |\n| 400 | `INVALID_PARAMS` | `saveRequest` is not `Y` or `N` |\n| 400 | `INVALID_PARAMS` | The query contains a parameter other than `saveRequest`, such as `taskId` |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is missing |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 422 | `BITRIX_ERROR` | The project does not exist or the user has no access to it. `error.b24Code` is `TASKS_SDC_02` |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Save DoD settings](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsave-settings)\n- [Save a task's DoD list](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsave-list)\n- [Check whether a task needs DoD](\u002Fdocs\u002Fscrum\u002Fdod\u002Fnecessary)\n- [Definition of Done in Scrum](\u002Fdocs\u002Fscrum\u002Fdod)\n",null,{},1795000570458]