Create Config
POST/v1/products/:productId/configs
This endpoint creates a new Config in a specified Product
identified by the productId
parameter, which can be obtained from the List Products endpoint.
Request
Path Parameters
The identifier of the Product.
- application/json
- text/json
- application/*+json
Body
required
Possible values: non-empty
and <= 255 characters
The name of the Config.
Possible values: <= 1000 characters
The description of the Config.
The order of the Config represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: [v1
, v2
]
Determines the evaluation version of a Config.
Using v2
enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
Body
required
Possible values: non-empty
and <= 255 characters
The name of the Config.
Possible values: <= 1000 characters
The description of the Config.
The order of the Config represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: [v1
, v2
]
Determines the evaluation version of a Config.
Using v2
enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
Body
required
Possible values: non-empty
and <= 255 characters
The name of the Config.
Possible values: <= 1000 characters
The description of the Config.
The order of the Config represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Possible values: [v1
, v2
]
Determines the evaluation version of a Config.
Using v2
enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
Responses
- 201
- 400
- 404
- 429
When the creation was successful.
- application/json
- Schema
- Example (from schema)
Schema
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 Config.
Name of the Config.
Description of the Config.
The order of the Config represented on the ConfigCat Dashboard.
Possible values: [v1
, v2
]
Determines the evaluation version of a Config.
Using v2
enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
{
"product": {
"organization": {
"organizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"order": 0,
"reasonRequired": true
},
"configId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"order": 0,
"migratedConfigId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"evaluationVersion": "v1"
}
Bad request.
Not found.
Too many requests. In case of the request rate exceeds the rate limits.