---
title: "Update worker"
method: PATCH
path: "/v1/workers/{id}"
tags: ["Workers"]
---

# Update worker

`PATCH /v1/workers/{id}`

Renames a worker, but only when the caller is the user who originally created that worker.

## Path parameters

- `id` string, typeid, required

## Request body

- object
  - `name` string, required

## Response `200`

Worker updated successfully.

- WorkerUpdateResponse
  - `worker` Worker, required
    - `id` string, typeid, required — Den TypeID with 'wrk_' prefix and a 26-character base32 suffix.
    - `orgId` string, typeid, required — Den TypeID with 'org_' prefix and a 26-character base32 suffix.
    - `createdByUserId` string, typeid, nullable, required — Den TypeID with 'usr_' prefix and a 26-character base32 suffix.
    - `isMine` boolean, required
    - `name` string, required
    - `description` string, nullable, required
    - `destination` string, required
    - `status` string, required
    - `imageVersion` string, nullable, required
    - `workspacePath` string, nullable, required
    - `sandboxBackend` string, nullable, required
    - `lastHeartbeatAt` string, date-time, nullable, required
    - `lastActiveAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — The worker update request was invalid.
- `401` — The caller must be signed in to update workers.
- `403` — Only the worker owner can rename this worker.
- `404` — The worker could not be found.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/073bc652adfb/schema)
