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

## Changes

> 12 revisions in range; 1 could not be searched.

- **2025-01-13** `20135041d803` — 2 info
  - api tag `changes and tasks` added
  - api tag `changes` removed
- **2024-12-22** `b3903318c3bd` — 2 info
  - api tag `changes` added
  - api tag `changes and tasks` removed

[Change history](https://skmtc.dev/canonical/apis/pebble-api/changes/v1/changes/:id/wait/get.md)

---

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