---
title: "Update credential pool"
method: PATCH
path: "/api/v1/credentials/{credential_pool_id}/"
tags: ["credentials"]
---

# Update credential pool

`PATCH /api/v1/credentials/{credential_pool_id}/`

Add new credentials to an existing credential pool. This operation is additive - new credentials are appended to the existing pool rather than replacing them. The credentials service validates that no duplicate usernames exist.
The credentials are provided as a CSV string where each line contains a username and password separated by a comma (e.g., "user4,pass4\nuser5,pass5").

## Path parameters

- `credential_pool_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `credentials` string, required — CSV-formatted credentials to add (username,password per line)

## Response `200`

Credential pool updated successfully

- CredentialsUpdateCredentialPoolResponse200
  - `credential_pool_id` string — The unique identifier for the updated credential pool

## Other responses

- `400` — Error
- `403` — Forbidden - User does not have workspace.workspace_update permission
- `404` — Not Found - Credential pool does not exist
- `409` — Conflict - Duplicate credentials detected (username already exists in pool)
- `502` — Bad Gateway - Credentials service unavailable or internal error

---

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