v1

latestOpenAPI 3.1.02026-07-261344388.3 KB
Environment

Token regenerate

Generates a new access token for the environment, invalidating the previous token.

post/api/projects/{projectId}/environments/{environmentId}/regenerate-token

Path parameters

environmentIdstring uuid required

ID of the environment to regenerate the token for

projectIdstring uuid required

ID of the project containing the environment

Response

The environment with the new access token

idstring uuid required

Unique identifier of the environment

namestring required

Name of the environment

accessTokenstring required

Newly generated access token

type'brms' | 'deployment' required

Type of environment

keystring nullable

Unique key for BRMS type environments

releaseIdstring uuid nullable

ID of the currently deployed release

deploymentIdstring uuid nullable

ID of the associated deployment

projectIdstring uuid required

ID of the project

addToWorkflowboolean required

Whether the environment is part of the deployment workflow

workflowOrdernumber nullable

Order position in the deployment workflow

requiredReviewersboolean required

Whether reviewers are required

approvalMode'require_one_per_team' | 'none_create_request' | 'require_any' | 'none' | 'null' nullable

Approval mode for deployments

createdAtstring required

Timestamp when the environment was created

updatedAtstring required

Timestamp when the environment was last updated

deletedAtstring nullable

Timestamp when the environment was deleted