Projects
Update a change set
- INVALID_ARGUMENT when the mask names a field that can't be updated.
- FAILED_PRECONDITION when the change set is not open.
- ABORTED when
etagis set and the change set changed since it was read.
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.
Query Parameters
The fields to update: title and description. Empty updates every
field the request populates. A change set never moves between
environments.
Request Body
application/json
The change set with updated fields. Its resource_name identifies it, and only
the fields named in update_mask are applied. Its etag, when set,
must match the change set's current one.
TypeScript Definitions
Use the request body type in TypeScript.
The change set with updated fields. Its resource_name identifies it, and only
the fields named in update_mask are applied. Its etag, when set,
must match the change set's current one.
Response Body
application/json
curl -X PATCH "https://example.com/v1/projects/string/environments/string/changesets/string" \ -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" }}Revert a change set POST
A change set that holds its environment is reverted in place: a new revision of the same change set, for the components named or every one it touched, with trigger REVERT. When every component is back, it reads REVERTED; when some are kept, it reads APPLIED with what it kept. A change set that has closed is reverted by a new change set whose `original_id` names it, for the components named or every one it touched, which may apply only while the environment has not moved past it. Scope: `changeset:write`
Create an environment POST
- NOT_FOUND when the project does not exist. - ALREADY_EXISTS when the project already has an environment with that name. Scope: `env:write`