Field-Viewer API

All errors

precondition.failed

The precondition (If-Match) failed

HTTP status
412
Problem type
https://api.field-viewer.com/problems/precondition.failed
Catalogue
Generic (any operation)

What it means

The If-Match revision you sent no longer matches the resource: someone changed it after you read it.

What to do

Read the resource again, apply your change to the fresh copy and retry with its new ETag.

Example response

Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.

HTTP/1.1 412
Content-Type: application/problem+json

{
  "type": "https://api.field-viewer.com/problems/precondition.failed",
  "title": "The precondition (If-Match) failed",
  "status": 412,
  "detail": "The precondition (If-Match) failed",
  "instance": "/v1/platform/flags/{flag}",
  "code": "precondition.failed",
  "requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}

Returned by

OperationRequestSummary
updatePlatformFlagPATCH /v1/platform/flags/{flag}Switch a feature flag on or off, for everyone or one rollout group