🎉 New in Flipt Pro: Integrated secrets management with HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, and Azure Key Vault. Learn more.
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>",
"description": "<description>",
"enabled": true
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "<string>",
"flagKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attachment": "<string>",
"namespaceKey": "<string>"
}
],
"namespaceKey": "<string>",
"type": "VARIANT_FLAG_TYPE",
"defaultVariant": {
"id": "<string>",
"flagKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attachment": "<string>",
"namespaceKey": "<string>"
},
"metadata": {}
}curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>",
"description": "<description>",
"enabled": true
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "<string>",
"flagKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attachment": "<string>",
"namespaceKey": "<string>"
}
],
"namespaceKey": "<string>",
"type": "VARIANT_FLAG_TYPE",
"defaultVariant": {
"id": "<string>",
"flagKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attachment": "<string>",
"namespaceKey": "<string>"
},
"metadata": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.flipt.io/llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>",
"name": "<name>",
"description": "<description>",
"enabled": true
}'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
Show child attributes
VARIANT_FLAG_TYPE, BOOLEAN_FLAG_TYPE Show child attributes
Was this page helpful?