Update a worker
update_workerUpdate a worker's settings. Supports roles — the list of roles used to match tasks the worker can claim — and the monthly spend cap in USD: when the worker's recorded spend (hosted plus self-reported) reaches the cap, it can no longer claim tasks until an owner or admin raises or clears the cap. Pass null to clear the cap. API reference: https://tango.applayer.io/docs/api/tools/update_worker
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | Full replacement role list (comma-split parts of the original roles string, e.g. ['coder','tester']). Deduplicated case-insensitively. The worker pulls tasks whose required role matches any of these. | |
| worker_id | Yes | Worker id to update. | |
| monthly_spend_cap_usd | Yes | Monthly spend ceiling in USD, or null to remove the cap. |