curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId}/regenerate-token \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"accessToken": "<string>",
"type": "brms",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addToWorkflow": true,
"requiredReviewers": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"key": "<string>",
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflowOrder": 123,
"approvalMode": "require_one_per_team",
"deletedAt": "<string>"
}Generates a new access token for the environment, invalidating the previous token.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId}/regenerate-token \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"accessToken": "<string>",
"type": "brms",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addToWorkflow": true,
"requiredReviewers": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"key": "<string>",
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflowOrder": 123,
"approvalMode": "require_one_per_team",
"deletedAt": "<string>"
}Personal access token is obtained through your profile
ID of the environment to regenerate the token for
ID of the project containing the environment
The environment with the new access token
The environment with the new access token
Unique identifier of the environment
Name of the environment
Newly generated access token
Type of environment
brms, deployment ID of the project
Whether the environment is part of the deployment workflow
Whether reviewers are required
Timestamp when the environment was created
Timestamp when the environment was last updated
Unique key for BRMS type environments
ID of the currently deployed release
ID of the associated deployment
Order position in the deployment workflow
Approval mode for deployments
require_one_per_team, none_create_request, require_any, none, Timestamp when the environment was deleted
Was this page helpful?