Projects
Discard a change set
- FAILED_PRECONDITION when it is not open.
Scope: changeset:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The project id.
The environment id.
The changeset id.
Response Body
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/changesets/string/discard"{ "change_set": { "id": "string", "title": "string", "resource_name": "string", "description": "string", "environment_id": "string", "original_id": "string", "revert_id": "string", "latest_revision_id": "string", "latest_run_id": "string", "status": "STATUS_UNSPECIFIED", "behind": true, "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}Diff a change set GET
Scope: `changeset:read`
Edit a change set POST
- FAILED_PRECONDITION when `if_revision` is not the latest revision's number (the message names the latest), when the change set is not open or its apply is running or holding the environment, when a version is revoked (the message carries the recorded reason), and when a component would land on no agent assignment that may run it and serves its providers (the message names an agent that would, and its owner). - ALREADY_EXISTS when a component name is live or held by another open change set (the message names which). Scope: `changeset:write`