Environments
Archive an environment
Archive an environment. It stops being selectable for runs and frees its name for a new one, but the row is kept and can be restored — this is why archive is a sub-action rather than a DELETE. Requires expectedRevision — the revision you last read. If the environment changed since, the write is rejected with 409 rather than overwriting the concurrent edit. Requires project admin.
post/projects/{projectId}/environments/{environmentId}/archive
Path parameters
projectIdstring required
ID of the hosted project that contains the server.
environmentIdstring required
Project environment ID, as returned by the project's environment list.
Request body
Response
The updated environment.