Flagship

Evaluate Flagship Flag

Changed on

Evaluates a flag against an evaluation context, as a Worker binding would.

post/flagship/apps/{app_id}/flags/{flag_key}/evaluate

Request

  • Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /cdn-cgi/local/explorer/api/flagship/apps/{app_id}/flags/{flag_key}/evaluate
  • Auth: none declared

Path parameters

app_idstring required
flag_keystring required

Query parameters

workerstring

Worker whose local Flagship store should be used.

Request body

contextobject

Attributes used for rule matching and rollout bucketing.

Response

Evaluate Flagship Flag response.

successtrue required

Whether the API call was successful.

Example response

{
  "errors": [],
  "messages": [],
  "success": true
}

Changes