curl --request PUT \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"key": "<string>",
"approvalMode": "none",
"approvalGroups": []
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "brms",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requiredReviewers": true,
"addToWorkflow": true,
"approvalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"approvalMode": "require_one_per_team",
"createdAt": "<string>",
"updatedAt": "<string>",
"accessToken": "<string>",
"key": "<string>",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"createdAt": "<string>",
"version": 123,
"semanticVersion": "<string>"
},
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"provider": "<string>",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"configuration": {},
"deletedAt": "<string>"
},
"project": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"reviewers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"workflowOrder": 123,
"changeRequests": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"status": "<string>",
"createdAt": "<string>"
}
],
"deletedAt": "<string>",
"metadata": {}
}Updates an existing environment configuration including name, key, and approval settings.
curl --request PUT \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"key": "<string>",
"approvalMode": "none",
"approvalGroups": []
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "brms",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requiredReviewers": true,
"addToWorkflow": true,
"approvalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"approvalMode": "require_one_per_team",
"createdAt": "<string>",
"updatedAt": "<string>",
"accessToken": "<string>",
"key": "<string>",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"createdAt": "<string>",
"version": 123,
"semanticVersion": "<string>"
},
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"provider": "<string>",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"configuration": {},
"deletedAt": "<string>"
},
"project": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"reviewers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"workflowOrder": 123,
"changeRequests": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"status": "<string>",
"createdAt": "<string>"
}
],
"deletedAt": "<string>",
"metadata": {}
}Personal access token is obtained through your profile
ID of the environment to update
ID of the project containing the environment
New name for the environment
New key for BRMS type environments
Approval mode for deployments to this environment
require_one_per_team, none_create_request, require_any, none, List of group IDs that can approve deployments
Group ID
The updated environment
The updated environment
Unique identifier of the environment
Name of the environment
Type of environment (brms or deployment)
brms, deployment ID of the project
Whether reviewers are required
Whether the environment is part of the deployment workflow
Groups that can approve deployments
Show child attributes
Approval mode for deployments to this environment
require_one_per_team, none_create_request, require_any, none Timestamp when the environment was created
Timestamp when the environment was last updated
Access token for the environment
Unique key for BRMS type environments
Currently deployed release information
Show child attributes
ID of the currently deployed release
ID of the associated deployment
Deployment configuration for the environment
Show child attributes
Project the environment belongs to
Show child attributes
List of members assigned as reviewers
Show child attributes
Order position in the deployment workflow
Pending change requests for this environment
Show child attributes
Timestamp when the environment was deleted
Additional metadata from the deployment provider
Show child attributes
Was this page helpful?