---
title: "Perform an action on a change"
method: POST
path: "/v1/changes/{id}"
tags: ["changes and tasks"]
---

# Perform an action on a change

`POST /v1/changes/{id}`

Perform an action on a change. Currently the only supported action is "abort".

## Path parameters

- `id` string, required

## Request body

- object
  - `action` 'abort' — The action to perform on the change.

## Response `200`

Change aborted.

- GetChangeByIDResponse
  - `type` string — Response type, "sync".
  - `status-code` integer — HTTP response status code.
  - `status` string — The description of the HTTP status code. See the [IANA list](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
  - `result` ChangeInfo
    - `id` string
    - `kind` string
    - `summary` string
    - `status` string
    - `tasks` TaskInfo[]
      - `id` string
      - `kind` string
      - `summary` string
      - `status` string
      - `log` string[]
      - `progress` TaskInfoProgress
        - `label` string
        - `done` integer
        - `total` integer
      - `spawn-time` string, date-time — spawn-time is a [time](#time).
      - `ready-time` string, date-time — ready-time is a [time](#time).
      - `data` object
    - `ready` boolean
    - `err` string
    - `spawn-time` string, date-time — spawn-time is a [time](#time).
    - `ready-time` string, date-time — ready-time is a [time](#time).
    - `data` object

---

[API](https://skmtc.net/canonical/apis/pebble-api.md) · [All operations](https://skmtc.net/canonical/apis/pebble-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/canonical/pebble-api/versions/a94f353eccac/schema)
