Skip to content

environments.archive

POST
/environments/{environmentId}/archive
curl --request POST \
--url https://example.com/api/environments/example/archive \
--header 'Content-Type: application/json' \
--data '{ "reason": "example" }'

Archives one environment while keeping deployment history readable. Public docs: /docs/environments/model/#environment-lifecycle

environmentId
required
string
>= 1 characters
Media type application/json
object
reason
string
>= 1 characters <= 280 characters
Example generated
{
"reason": "example"
}

OK

Media type application/json
object
id
required
string
Example generated
{
"id": "example"
}