Passer au contenu principal
POST
https://{tenantDomain}/api/v2
/
experimentation
/
feature-flags
/
{id}
/
status
Transition a feature flag to a new status.
curl --request POST \
  --url https://{tenantDomain}/api/v2/experimentation/feature-flags/{id}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "draft"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "type": "auth0",
  "status": "draft",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "parameters": {}
}

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

The ID of the feature flag to transition.

Corps

The target lifecycle status for the feature flag.

status
enum<string>
requis

The target status to transition the feature flag to.

Options disponibles:
draft,
active,
archived

Réponse

Feature flag status successfully updated.

id
string
requis
Pattern: ^flg_[A-HJ-NP-Za-km-z1-9]+$
name
string
requis
type
enum<string>
requis

Filter by type. Exact match.

Options disponibles:
auth0,
self
status
enum<string>
requis

Filter by status. Exact match.

Options disponibles:
draft,
active,
archived
created_at
string<date-time>
requis
updated_at
string<date-time>
requis
description
string
parameters
object

Configuration parameters for this feature flag