Flagship

Update Flagship Flag

Changed on

Updates a flag. Omitted fields keep their current values; provided rules replace the existing ones.

patch/flagship/apps/{app_id}/flags/{flag_key}

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}
  • Auth: none declared

Path parameters

app_idstring required
flag_keystring required

Query parameters

workerstring

Worker whose local Flagship store should be used.

Request body

descriptionstring nullable

Human readable description

enabledboolean

Whether the flag is enabled

default_variationstring

Variation served when no rule matches

variationsobject

Named values the flag can serve

Response

Update Flagship Flag response.

successtrue required

Whether the API call was successful.

Example response

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

Changes