---
title: "Report the result of work on this computer"
method: POST
path: "/v1/computer-commands/{id}/complete"
tags: ["Internal"]
---

# Report the result of work on this computer

`POST /v1/computer-commands/{id}/complete`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/computer-commands/{id}/complete`
- Auth: HTTP bearer

Only the runner that picked up the command can report its result. It can do so after the deadline as long as Den still has the command. Repeating the same result is safe.

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `status` 'done', required
    - `exitCode` integer, required
    - `output` string, required
    - `truncated` boolean, required
  - object
    - `status` 'failed', required
    - `error` object, required
      - `code` string, required
      - `message` string, required
  - object
    - `status` 'refused', required
    - `layer` 'organization' | 'computer' | 'source', required
    - `code` 'organization_off' | 'computer_not_allowed' | 'not_available_yet' | 'owner_app_only' | 'nothing_shared' | 'folder_not_shared' | 'sandbox_unavailable' | 'source_not_allowed' | 'folder_read_only' | 'not_owner', required

## Response `200`

Completion acknowledged.

- object
  - `command` object, required
    - `id` string, required
    - `status` 'pending' | 'claimed' | 'done' | 'failed' | 'refused' | 'expired', required

## Other responses

- `400`: Invalid completion.
- `401`: The runner token was missing, expired, or its owner is no longer an active member.
- `403`: This computer cannot use the sandbox or has been disconnected.
- `404`: Computers is disabled or the computer or command was not found.
- `409`: This computer can't report that result for this command.

## Changes

- **2026-11-28** `6aa21cd7a1ac`: 4 info
  - added the new `folder_read_only` enum value to the request property `oneOf[subschema #3]/code`
  - added the new `not_owner` enum value to the request property `oneOf[subschema #3]/code`
  - added the new `sandbox_unavailable` enum value to the request property `oneOf[subschema #3]/code`
  - added the new `source_not_allowed` enum value to the request property `oneOf[subschema #3]/code`
- **2026-11-28** `974b1bd609d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/computer-commands/:id/complete/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
