Feature Flags

Bring an archived flag back.

Changed on

Archiving is otherwise one-way: the key stays reserved so the flag cannot even be re-created under the same name, which makes an accidental archive unrecoverable through the API.

post/projects/{project_id}/flags/{key}/restore

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

keystring required

Flag key

Response

Flag restored

archived_atstring nullable
client_visibleboolean required
created_atstring required
default_valueunknown required
descriptionstring nullable
exposure_sample_ratenumber double required

Share of subjects whose browser records exposure events. 0 = off.

idinteger required
keystring required
last_evaluated_atstring nullable

When an app last actually evaluated this flag. None means never seen, which is a real answer rather than missing data.

updated_atstring required

Send back as expected_updated_at to make an update conditional.

value_typestring required

Changes

    • info

      added the required property environments/items/rules to the response with the status

    • info

      added the required property environments/items/rules_valid to the response with the status

    • info

      added the required property environments/items/updated_at to the response with the status

    2 more changes in this revision