Changesets
Discard a change set
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 change_set_id path parameter.
^cs-[0-9a-z]+$Response Body
application/json
curl -X POST "https://example.com/v1/changesets/string/discard"{ "change_set": { "id": "string", "application_id": "string", "environment_id": "string", "title": "string", "description": "string", "status": "STATUS_UNSPECIFIED", "head_revision": 0, "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", "reverts_change_set_id": "string", "behind": true, "latest_run_id": "string", "reverted_by_change_set_id": "string" }}Diff a change set GET
Scope: `changeset:read`
Edit a change set POST
FAILED_PRECONDITION when `if_revision` is not the head (the message names the head), 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). A contract violation is accepted: it is stored on the revision and returned. Scope: `changeset:write`