Projects
Add an environment to a project.
This endpoint adds the provided environment to the specified project, with optional support for enabling and disabling change requests for the environment and project.
post/api/admin/projects/{projectId}/environments
Path parameters
projectIdstring required
Request body
Example request
{
"environment": "development",
"changeRequestsEnabled": true,
"defaultStrategy": {
"name": "flexibleRollout",
"title": "Gradual Rollout 25-Prod",
"sortOrder": 9999,
"constraints": [
{
"values": [
"1",
"2"
],
"inverted": false,
"operator": "IN",
"contextName": "appName",
"caseInsensitive": false
}
],
"variants": [
{
"name": "blue_group",
"weightType": "fix",
"stickiness": "custom.context.field",
"payload": {
"type": "json",
"value": "{\"color\": \"red\"}"
}
}
],
"segments": [
1,
2
]
}
}Response
This response has no body.