Changesets
Rebase a change set
Every conflict needs a resolution, and resolving any dismisses every approval. Without one, an approval carries to the new revision's run when its plan does the same thing to every resource, as ApproveRun says.
FAILED_PRECONDITION when it is not behind, when if_revision is not the
head, when the change set is not open or its apply is running, and when a
conflict has no resolution or a resolution matches no conflict (the
message names each).
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]+$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/changesets/string/rebase" \ -H "Content-Type: application/json" \ -d '{}'{ "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" }, "revision": { "id": "string", "number": 0, "change_set_id": "string", "base_generation": "string", "cause": "CAUSE_UNSPECIFIED", "violations": [ { "component": "string", "path": "string", "message": "string" } ], "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "entries": [ { "component": "string", "action": "ENTRY_ACTION_UNSPECIFIED", "version": { "component_id": "string", "version_id": "string", "digest": "string", "reference": "string" }, "base_digest": "string", "result_digest": "string", "ops": [ { "path": [ { "key": "string" } ], "op": "KIND_UNSPECIFIED", "value_json": "string", "from_present": true, "from_value_json": "string" } ], "settings": { "assignment_id": "string", "kubernetes": { "namespace": "string", "extra_namespaces": [ "string" ] } }, "depends_on": [ "string" ] } ] }, "warnings": [ "string" ]}