---
title: "Update a pool"
method: PATCH
path: "/api/pools/{poolId}"
tags: ["Pool"]
---

# Update a pool

`PATCH /api/pools/{poolId}`

Update a pool with the specified name and concurrency limit. You cannot update the default pool. The default pool’s concurrency limit is adjusted to accommodate the new concurrency limit. A pool’s concurrency limit cannot be reduced if it has more running attempts than its new reduced concurrency limit.

## Path parameters

- `poolId` integer, required — ID of the pool.

## Request body

- RestPoolUpdateRequest
  - `concurrencyLimit` integer — Maximum number of concurrent attempts that can run in this pool. Total concurrency limit of all pools cannot exceed the account's concurrency limit.
  - `name` string — Name of the pool. This name must be unique within the account.

## Response `200`

Pool updated

- RestPool
  - `concurrencyLimit` integer, required — Maximum number of concurrent attempts that can run in this pool. Total concurrency limit of all pools cannot exceed the account's concurrency limit.
  - `default` boolean, required — Whether the pool is the default pool.
  - `id` string, required — ID of the pool.
  - `name` string, required — Name of the pool. This name must be unique within the account.

## Other responses

- `400` — Invalid request
- `403` — Forbidden
- `404` — Pool not found

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
