---
title: "PATCH /0/factory/worker/{worker}"
method: PATCH
path: "/0/factory/worker/{worker}"
---

# PATCH /0/factory/worker/{worker}

`PATCH /0/factory/worker/{worker}`

## Path parameters

- `worker` string, required

## Request body

- FactoryWorkerAssociate
  - `ip` string, nullable
  - `metadata` FactoryMetadata
    - `addresses` FactoryAddresses[]
      - `cidr` string, required
      - `count` integer, required
      - `first` string, required
      - `gateway` string, nullable
      - `name` string, required
      - `routed` boolean, required
    - `dump_to_rpool` integer, nullable
    - `post_job_diagnostic_script` string, nullable
    - `pre_job_diagnostic_script` string, nullable
    - `root_authorized_keys` string, nullable
    - `root_password_hash` string, nullable
    - `rpool_disable_sync` boolean, nullable
    - `v` '1', required
  - `private` string, required

## Response `204`

resource updated

## Other responses

- `4XX` — Error
- `5XX` — Error

## Changes

- **2024-11-15** `4f29638e127e` — 1 info
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/rpool_disable_sync`
- **2024-03-13** `fa8fca7efda4` — 1 info
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/pre_job_diagnostic_script`
- **2024-03-13** `8052886c11a6` — 2 info
  - added the new optional request property `ip`
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/root_authorized_keys`
- **2024-03-11** `7962484a2c41` — 2 info
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/dump_to_rpool`
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/post_job_diagnostic_script`
- **2024-02-28** `4973c53ff968` — 1 info
  - added the new optional request property `metadata/allOf[#/components/schemas/FactoryMetadata]/oneOf[subschema #1]/root_password_hash`

[Full history](https://skmtc.dev/oxidecomputer/apis/buildomat/changes/0/factory/worker/:worker/patch.md)

---

[API](https://skmtc.dev/oxidecomputer/apis/buildomat.md) · [All operations](https://skmtc.dev/oxidecomputer/apis/buildomat/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oxidecomputer/buildomat/revisions/fd107227bbea/schema)
