---
title: "Wait for a change to complete"
method: GET
path: "/v1/changes/{id}/wait"
tags: ["changes and tasks"]
---

# Wait for a change to complete

`GET /v1/changes/{id}/wait`

Wait for the change to be finished.

If the wait operation succeeds, the result will have the "err" field set to an appropriate error message if the change itself had an error.

## Path parameters

- `id` string, required

## Query parameters

- `timeout` string

## Response `200`

Wait for a change.

- 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)
