Update an existing flag. Returns the current flag-state version for every environment, including any versions advanced by this update.

patch/apps/{appId}/flags/{flagId}

Request

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

Path parameters

appIdstring required

App identifier

flagIdstring required

Flag ID

Request body

namestring

Name of the flag

descriptionstring nullable

Description of the flag

ownerUserIdstring nullable
permanentboolean
secretboolean

Whether the flag is secret

isArchivedboolean
stageIdstring

Stage ID of the flag

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