Skip to content

Commit 749c59b

Browse files
fix(write-api): Update Cloud Dedicated outside-retention failure to HTTP 422
1 parent c833390 commit 749c59b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

api-docs/cloud-dedicated/v2/ref.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,13 @@ paths:
703703
schema:
704704
$ref: '#/components/schemas/LineProtocolLengthError'
705705
description: Write has been rejected because the payload is too large. Error message returns max size supported. All data in body was rejected and not written.
706+
'422':
707+
description: |
708+
Unprocessable Entity.
709+
710+
The request contained data outside the bucket's retention window, causing InfluxDB to reject the batch and write no data.
711+
712+
The response body contains details about the [rejected points](/influxdb/cloud-dedicated/write-data/troubleshoot/#troubleshoot-rejected-points).
706713
'429':
707714
description: Token is temporarily over quota. The Retry-After header describes when to try the write again.
708715
headers:

content/influxdb/cloud-dedicated/write-data/troubleshoot.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ The `message` property of the response body may contain additional details about
5656
| `400 "Bad request"` | error details about rejected points, up to 100 points: `line` contains the first rejected line, `message` describes rejections line | If request data is malformed |
5757
| `401 "Unauthorized"` | | If the `Authorization` header is missing or malformed or if the [token](/influxdb/cloud-dedicated/admin/tokens/) doesn't have [permission](/influxdb/cloud-dedicated/reference/cli/influxctl/token/create/#examples) to write to the database. See [examples using credentials](/influxdb/cloud-dedicated/get-started/write/#write-line-protocol-to-influxdb) in write requests. |
5858
| `404 "Not found"` | requested **resource type** (for example, "organization" or "database"), and **resource name** | If a requested resource (for example, organization or database) wasn't found |
59+
| `422 "Unprocessable Entity"` | `message` contains details about the error | If the data isn't allowed (for example, falls outside of the bucket's retention period).
5960
| `500 "Internal server error"` | | Default status for an error |
60-
| `503 "Service unavailable"` | | If the server is temporarily unavailable to accept writes. The `Retry-After` header contains the number of seconds to wait before trying the write again.
61+
| `503 "Service unavailable"` | | If the server is temporarily unavailable to accept writes. The `Retry-After` header contains the number of seconds to wait before trying the write again.
6162

6263
The `message` property of the response body may contain additional details about the error.
6364
If your data did not write to the database, see how to [troubleshoot rejected points](#troubleshoot-rejected-points).

0 commit comments

Comments
 (0)