Driftwatch

Cloudflare / Cloudflare API /

Breaking

Response field code removed

What changed

Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

Affects POST /accounts/{account_id}/ai-search/instances/{id}/chat/completions.

Who is affected

Code that reads POST /accounts/{account_id}/ai-search/instances/{id}/chat/completions (errors[].code).

Before and after

WhereBeforeAfter
POST /accounts/{account_id}/ai-search/instances/{id}/chat/completions · errors[].codepresentabsent
POST /accounts/{account_id}/ai-search/instances/{id}/search · errors[].codepresentabsent
POST /accounts/{account_id}/ai-search/namespaces/{name}/chat/completions · errors[].codepresentabsent
POST /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/chat/completions · errors[].codepresentabsent
POST /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/search · errors[].codepresentabsent
POST /accounts/{account_id}/ai-search/namespaces/{name}/search · errors[].codepresentabsent

Code that breaks

// response.errors[0].code is now undefined
const code = response.errors[0].code;

Based on Cloudflare’s published API specification. How severity is decided.