Field-Viewer API

All errors

precondition.required

A precondition (If-Match) is required

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

What it means

This update needs an If-Match header so that it cannot overwrite a change you have not seen.

What to do

Read the resource, then send its ETag value in If-Match with the update.

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 428
Content-Type: application/problem+json

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

Returned by

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