Feature Flags
Create an environment
Creates a new environment for organizing feature flags.
post/api/v2/feature-flags/environments
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/feature-flags/environments
- AuthAPI key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
Request body
Example request
{
"data": {
"attributes": {
"name": "env-search-term",
"queries": [
"staging",
"test"
]
},
"type": "environments"
}
}Response
Created
Example response
{
"data": {
"attributes": {
"created_at": "2023-01-01T00:00:00Z",
"description": "Test environment XYZ789",
"key": "env-search-term",
"name": "env-search-term",
"queries": [
"staging",
"test"
],
"updated_at": "2023-01-01T00:00:00Z"
},
"id": "550e8400-e29b-41d4-a716-446655440001",
"type": "environments"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.