Admiral

Projects

Update a change set

PATCH
/v1/projects/{project}/environments/{environment}/changesets/{changeset}
  • INVALID_ARGUMENT when the mask names a field that can't be updated.
    • FAILED_PRECONDITION when the change set is not open.
    • ABORTED when etag is set and the change set changed since it was read.

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.

Query Parameters

update_mask?string

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"  }}