update-annotation
dci update-annotation <id> [body]
Updates the annotation specified by the Id.
id— Annotation ID as shown bydci list-annotations(select theidcolumn with-C id,content).
Pass the request body as name: value arguments or pipe JSON on stdin — see Command structure.
Examples
# Reword an annotation.
dci update-annotation <annotation-id> content: "Moved batch jobs to Spot (completed 3 Sep)"
# Move it to a different date.
dci update-annotation <annotation-id> timestamp: "2026-09-03T00:00:00Z"
# Change which reports and labels it is attached to.
dci update-annotation <annotation-id> reports: [<report-id>], labels: [<label-id>]
Exit code 0 and the updated annotation; `dci get-annotation <annotation-id> --output json` shows the new lists.
Request
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
content | string | The content of the annotation. | |
timestamp | string (date-time) | The date associated with the annotation. | |
reports | array of string | List of report IDs associated with the annotation. | |
labels | array of string | List of label IDs to associate with the annotation. Labels must already exist. |