Create a new flag in the application. Returns the created flag and the resulting flag-state version for every environment.

post/apps/{appId}/flags

Request

  • Base URL
    https://app.reflag.com/api
  • Auth
    HTTP bearer

Path parameters

appIdstring required

App identifier

Request body

keystring required

Key of the flag

namestring required

Name of the flag

descriptionstring nullable

Description of the flag

stageIdstring

Stage ID of the flag

ownerUserIdstring nullable
permanentboolean
secretboolean

Whether the flag is secret

Response

Requested resource retrieved successfully

flagStateVersionsAppFlagStateVersions required

Current flag-state version keyed by environment ID

Changes

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • info

      the request property became nullable

    • info

      the // response's property pattern was changed from ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ to ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ for the status

    • info

      added the required property to the response with the status