---
title: "Update a worker"
method: POST
path: "/api/workers/{id}"
tags: ["Workers"]
---

# Update a worker

`POST /api/workers/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateWorkerRequest
  - `name` string — Name of the worker
  - `description` string — Description of the worker

## Response `200`

Updated worker

- Workers
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `description` string, nullable
  - `status` string, nullable
  - `lastRefreshedAt` string, date-time, nullable
  - `teamId` string, required
  - `flowsIds` string[]
  - `deploymentsIds` string[]
  - `resourcesIds` string[]
  - `integrationsIds` string[]

## Other responses

- `400` — Invalid request body
- `401` — Unauthorized
- `404` — Worker not found

---

[API](https://skmtc.net/brainbasehq/apis/brainbase-api.md) · [All operations](https://skmtc.net/brainbasehq/apis/brainbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brainbasehq/brainbase-api/revisions/ab4ce60666d2/schema)
