Create Flag
POST/v1/configs/:configId/settings
This endpoint creates a new Feature Flag or Setting in a specified Config
identified by the configId
parameter.
Important: The key
attribute must be unique within the given Config.
Request
Path Parameters
The identifier of the Config.
- application/json
- text/json
- application/*+json
Body
required
Array [
]
Possible values: <= 1000 characters
A short description for the setting, shown on the Dashboard UI.
The IDs of the tags which are attached to the setting.
The order of the Setting represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: non-empty
and <= 255 characters
The key of the Feature Flag or Setting.
Possible values: non-empty
and <= 255 characters
The name of the Feature Flag or Setting.
Possible values: [boolean
, string
, int
, double
]
The type of the Feature Flag or Setting.
initialValues
object[]
nullable
Optional, initial value of the Feature Flag or Setting in the given Environments.
The ID of the Environment where the initial value must be set.
The initial value in the given Environment. It must respect the setting type.
Body
required
Array [
]
Possible values: <= 1000 characters
A short description for the setting, shown on the Dashboard UI.
The IDs of the tags which are attached to the setting.
The order of the Setting represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: non-empty
and <= 255 characters
The key of the Feature Flag or Setting.
Possible values: non-empty
and <= 255 characters
The name of the Feature Flag or Setting.
Possible values: [boolean
, string
, int
, double
]
The type of the Feature Flag or Setting.
initialValues
object[]
nullable
Optional, initial value of the Feature Flag or Setting in the given Environments.
The ID of the Environment where the initial value must be set.
The initial value in the given Environment. It must respect the setting type.
Body
required
Array [
]
Possible values: <= 1000 characters
A short description for the setting, shown on the Dashboard UI.
The IDs of the tags which are attached to the setting.
The order of the Setting represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: non-empty
and <= 255 characters
The key of the Feature Flag or Setting.
Possible values: non-empty
and <= 255 characters
The name of the Feature Flag or Setting.
Possible values: [boolean
, string
, int
, double
]
The type of the Feature Flag or Setting.
initialValues
object[]
nullable
Optional, initial value of the Feature Flag or Setting in the given Environments.
The ID of the Environment where the initial value must be set.
The initial value in the given Environment. It must respect the setting type.
Responses
- 201
- 400
- 404
- 429
When the creation was successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Identifier of the Feature Flag or Setting.
Key of the Feature Flag or Setting.
Name of the Feature Flag or Setting.
Description of the Feature Flag or Setting.
The order of the Feature Flag or Setting represented on the ConfigCat Dashboard.
Possible values: [boolean
, string
, int
, double
]
The type of the Feature Flag or Setting.
Identifier of the Feature Flag's Config.
Name of the Feature Flag's Config.
tags
object[]
nullable
The tags attached to the Feature Flag or Setting.
product
object
Details of the Product.
organization
object
Details of the Organization.
Identifier of the Organization.
Name of the Organization.
Identifier of the Product.
Name of the Product.
Description of the Product.
The order of the Product represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Determines whether a mandatory reason must be given every time when the Feature Flags or Settings within a Product are saved.
Identifier of the Tag.
Name of the Tag.
The configured color of the Tag.
{
"settingId": 0,
"key": "string",
"name": "string",
"hint": "string",
"order": 0,
"settingType": "boolean",
"configId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"configName": "string",
"tags": [
{
"product": {
"organization": {
"organizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"order": 0,
"reasonRequired": true
},
"tagId": 0,
"name": "string",
"color": "string"
}
]
}
Bad request.
Not found.
Too many requests. In case of the request rate exceeds the rate limits.