Archive a completed Dream.
POST /api/v1/cloud/dreams/{id}/archive
Archives the specified Dream. Only terminal-state Dreams (completed, failed, canceled) can be archived. Calling archive on an already-archived Dream is idempotent. Returns the updated Dream object.
Archived Dreams are excluded from list results by default unless include_archived=true is passed.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Dream ID (drm_ prefix) |
Example request
Example response
HTTP 200 OK
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Dream is in pending or running state (cancel it first) |
| 401 | authentication_error | Missing or invalid authentication token |
| 404 | not_found_error | Dream does not exist |