What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects errors[].code on PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items.
can now return 7116
Who is affected
Code that reads PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items (errors[].code).
Before and after
| Where | Before | After |
|---|---|---|
| PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items · errors[].code | 7111 | 7116 |
| POST /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items · errors[].code | 7111 | 7116 |
| PATCH /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{item_id} · errors[].code | 7111 | 7116 |
Code that breaks
switch (response.errors[0].code) {
// existing branches …
default:
throw new Error("unexpected code");
}Based on Cloudflare’s published API specification. How severity is decided.