[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-workday\u002Fdaily-reports\u002Fsave":3,"docs-tabs-workday\u002Fdaily-reports\u002Fsave":6},{"content":4,"lastmod":5},"## Save a daily report\n\n`PUT \u002Fv1\u002Fworkday\u002Frecords\u002F:recordId\u002Freport`\n\nCreates an employee's daily report in a work time record, or replaces the text of the record's existing report.\n\nRequires the `timeman` scope. A report can be saved only to your own record — the credential owner's record. READONLY keys can read reports but cannot save them.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|----------|\n| `recordId` (path) | integer | yes | — | ID of the credential owner's work time record. The record of the current or last workday — `data.id` in the [`GET \u002Fv1\u002Fworkday\u002Fstatus`](\u002Fdocs\u002Fworkday\u002Fstatus) response. List: [`GET \u002Fv1\u002Fworkday\u002Frecords`](\u002Fdocs\u002Fworkday\u002Frecords) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `reportText` | string | yes | Report text, BB code markup allowed. Replaces the previous text entirely. An empty string clears the text; the report remains |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PUT \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Frecords\u002F185\u002Freport\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"reportText\": \"[b]Done:[\u002Fb] daily summary\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PUT \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Frecords\u002F185\u002Freport\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"reportText\": \"[b]Done:[\u002Fb] daily summary\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Frecords\u002F185\u002Freport', {\n  method: 'PUT',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    reportText: '[b]Done:[\u002Fb] daily summary',\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\u002Frecords\u002F185\u002Freport', {\n  method: 'PUT',\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    reportText: '[b]Done:[\u002Fb] daily summary',\n  }),\n})\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` when the request succeeds |\n| `data` | object | The saved daily report. Field details — [Report fields](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Ffields) |\n| `data.id` | integer | Daily report ID. Stays the same when the report is saved again. List: [`GET \u002Fv1\u002Fworkday\u002Fdaily-reports`](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Flist) |\n| `data.recordId` | integer | Work time record ID. List: [`GET \u002Fv1\u002Fworkday\u002Frecords`](\u002Fdocs\u002Fworkday\u002Frecords) |\n| `data.userId` | integer | ID of the employee the report belongs to. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.type` | string | Always `REPORT` — the employee's report |\n| `data.report` | string | Report text with BB code markup |\n| `data.reportPlain` | string | Report text without markup |\n| `data.timestamp` | string \\| null | When the report was saved |\n| `data.reportExtended` | null | The report written by AI or an automation rule is not included in this response. To get it, call [`GET \u002Fv1\u002Fworkday\u002Frecords\u002F:recordId\u002Freport`](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Fget) with `withAi=true` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 379,\n    \"recordId\": 185,\n    \"userId\": 101,\n    \"type\": \"REPORT\",\n    \"report\": \"[b]Done:[\u002Fb] daily summary\",\n    \"reportPlain\": \"Done: daily summary\",\n    \"timestamp\": \"2026-10-07T08:19:18.000Z\",\n    \"reportExtended\": null\n  }\n}\n```\n\n## Error response example\n\n403 — the work time record belongs to another employee:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ACCESS_DENIED\",\n    \"message\": \"A daily report can only be saved to the current Bitrix24 user’s own workday record\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `recordId` is not a positive integer, the request body is not a JSON object, `reportText` is missing or not a string, the body contains an unknown field, or a query string parameter is passed, such as `?withAi=true` — the method accepts none |\n| 404 | `ENTITY_NOT_FOUND` | No work time record with this `recordId` exists |\n| 403 | `BITRIX_ACCESS_DENIED` | The record belongs to another employee, including a subordinate. Message: `A daily report can only be saved to the current Bitrix24 user’s own workday record` |\n| 403 | `BITRIX_ACCESS_DENIED` | The credential owner lacks the right to read the time records of the employee the record belongs to. Without this right, saving to one's own record is refused too. Message: `Access denied.` |\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 save 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## See also\n\n- [Read a daily report](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Fget)\n- [List daily reports](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Flist)\n- [Report fields](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Ffields)\n- [Workday history](\u002Fdocs\u002Fworkday\u002Frecords)\n- [Daily reports](\u002Fdocs\u002Fworkday\u002Fdaily-reports)\n- [Workday](\u002Fdocs\u002Fworkday)\n","2026-10-07",{},1795415523131]