Flagship

Create Flagship Flag

Changed on

Creates a flag in a local Flagship app.

post/flagship/apps/{app_id}/flags

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

Path parameters

app_idstring required

Query parameters

workerstring

Worker whose local Flagship store should be used.

Request body

keystring required

Flag key

descriptionstring nullable

Human readable description

enabledboolean

Whether the flag is enabled

default_variationstring required

Variation served when no rule matches

variationsobject required

Named values the flag can serve

Response

Create Flagship Flag response.

successtrue required

Whether the API call was successful.

Example response

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

Changes