TermsErrorResponse

A rejected terms save or preview.

code is the stable part — the client branches on it. itemIndex and field are set for a rule that applies to one line, so the editor can highlight exactly what to fix.

  • Stable machine-readable rule code

  • Human-readable explanation, for a fallback toast

  • The offending field, for a field-scoped rule. Null otherwise

  • Position in the request's items array, for a line-scoped rule. Null otherwise