curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "brms",
"key": "<string>",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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": {}
}Creates a new environment within a project for deploying releases.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "brms",
"key": "<string>",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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 project to create the environment in
Name of the environment
Type of environment (brms or deployment)
brms, deployment Unique key for BRMS type environments (required when type is brms)
ID of the deployment configuration (required when type is deployment)
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 created environment
The created 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?