[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-workday\u002Fwork-reports\u002Fsubmit":3,"docs-tabs-workday\u002Fwork-reports\u002Fsubmit":6},{"content":4,"lastmod":5},"## Submit a work report\n\n`POST \u002Fv1\u002Fworkday\u002Fwork-reports\u002Fsubmit`\n\nSubmits an existing work report, or creates a new one and submits it immediately.\n\nRequires the `timeman` scope. Bitrix24 checks the credential owner’s permissions. READONLY keys can read reports and cannot write them.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `reportText` | string | yes | Report text. With `reportId`, it replaces the report text, and an empty string clears it |\n| `reportId` | integer | no | Report ID. List: [`GET \u002Fv1\u002Fworkday\u002Fwork-reports`](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Flist). Without `reportId`, a new report is created and submitted for the credential owner |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fwork-reports\u002Fsubmit \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"reportId\": 143, \"reportText\": \"Weekly report\" }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fwork-reports\u002Fsubmit \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"reportId\": 143, \"reportText\": \"Weekly report\" }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fwork-reports\u002Fsubmit', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    reportId: 143,\n    reportText: 'Weekly report',\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\u002Fworkday\u002Fwork-reports\u002Fsubmit', {\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    reportId: 143,\n    reportText: 'Weekly report',\n  }),\n})\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` when the report is submitted |\n| `data` | object | The submitted report. All fields — [Report fields](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Ffields) |\n\n## Response example\n\nThe main report fields are shown. For the full list, see [Report fields](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Ffields):\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 143,\n    \"userId\": 101,\n    \"active\": true,\n    \"reportType\": \"day\",\n    \"reportDate\": \"2026-10-06T18:22:40.000Z\",\n    \"dateFrom\": \"2026-10-05T21:00:00.000Z\",\n    \"dateTo\": \"2026-10-05T21:00:00.000Z\",\n    \"report\": \"Weekly report\",\n    \"type\": \"REPORT\",\n    \"mark\": \"N\",\n    \"approve\": \"Y\"\n  }\n}\n```\n\n## Error response example\n\n400 — `reportText` is missing:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"reportText is required and must be a string\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `reportText` is missing, `reportId` is not a positive integer, or the body contains an unknown field |\n| 404 | `ENTITY_NOT_FOUND` | No report with this `reportId` exists |\n| 403 | `BITRIX_ACCESS_DENIED` | The report belongs to another employee, and the credential owner lacks Bitrix24 permissions to change that employee's reports |\n| 409 | `TIMEMAN_MODULE_NOT_ENABLED` | Time Management is not available on this portal |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused the operation |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a response of an unexpected shape |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 401 | `TOKEN_MISSING` | An app key was sent without a session token in `Authorization: Bearer` |\n| 401 | `INVALID_SESSION` | The session token is invalid or has expired |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is READONLY and cannot submit reports |\n| 403 | `SCOPE_DENIED` | The key lacks the `timeman` scope |\n| 429 | `RATE_LIMITED` | The general request limit was exceeded |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **A new report's period is chosen as when creating a report.** Without `reportId`, the period is chosen the same way as when a report is created without `dateFrom` and `dateTo`: [Create a work report](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Fcreate).\n- **Confirmation depends on the employee's managers.** If the employee has managers, the submitted report waits for their mark: `approve` is `\"N\"`. If the employee has no managers, the report is confirmed immediately: `approve` is `\"Y\"`.\n- **A submitted report can be submitted again.** The text is replaced, the report stays submitted, and `mark` and `approve` do not change.\n\n## See also\n\n- [Send a work report](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Fsend)\n- [Create a work report](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Fcreate)\n- [List work reports](\u002Fdocs\u002Fworkday\u002Fwork-reports\u002Flist)\n- [Work reports](\u002Fdocs\u002Fworkday\u002Fwork-reports)\n- [Daily reports](\u002Fdocs\u002Fworkday\u002Fdaily-reports)\n- [Workday](\u002Fdocs\u002Fworkday)\n","2026-10-07",{},1795415527266]