Projects
Edit a change set
- FAILED_PRECONDITION when
if_revisionis 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
Authorization
bearerAuth AuthorizationBearer <token>
An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
project*string
The project id.
environment*string
The environment id.
changeset*string
The changeset id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
edit_change_set.upload_needs_if_revision // an upload replaces a whole tree, so it needs if_revision
Response Body
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/changesets/string/edit" \ -H "Content-Type: application/json" \ -d '{}'{ "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" }, "revision": { "id": "string", "resource_name": "string", "change_set_id": "string", "number": 0, "trigger": "TRIGGER_UNSPECIFIED", "environment_generation": "string", "entries": [ { "component": "string", "action": "ENTRY_ACTION_UNSPECIFIED", "version": { "component_id": "string", "version_id": "string", "digest": "string", "requested": "string" }, "base_digest": "string", "result_digest": "string", "ops": [ { "path": { "segments": [ { "key": "string" } ], "display": "string" }, "op": "KIND_UNSPECIFIED", "value_json": "string", "from_present": true, "from_value_json": "string" } ], "settings": { "assignment_id": "string", "kind": "AGENT_KIND_UNSPECIFIED", "infra": { "backend": { "type": "string", "config": { "property1": null, "property2": null } }, "engine": { "engine": "ENGINE_UNSPECIFIED", "version": "string" } } }, "dependencies": [ "string" ], "consumes": [ "string" ] } ], "violations": [ { "component": "string", "path": { "segments": [ { "key": "string" } ], "display": "string" }, "message": "string" } ], "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z" }, "warnings": [ "string" ]}