---
title: "Patch Credential Value"
method: PATCH
path: "/workflow/credentials/{credential_id}/value"
tags: ["workflow-credentials"]
---

# Patch Credential Value

`PATCH /workflow/credentials/{credential_id}/value`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/workflow/credentials/{credential_id}/value`
- Auth: HTTP bearer

Add, overwrite or remove individual keys of a static credential's value.

The whole-value PUT cannot express this: the value is one encrypted blob the
client is never allowed to read, so replacing it wholesale would silently
drop every key the caller did not happen to retype. The merge belongs on the
server, which is the only side that can decrypt.

## Path parameters

- `credential_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- CredentialValuePatchSchema: A partial edit of a static credential's value. Per-key rather than whole-value because the value is a single encrypted blob the client cannot read: to overwrite one key without wiping the rest, the merge has to happen on the server, which is the only side that can decrypt.
  - `set` object
  - `delete` string[]
  - `expires_at` string, date-time, nullable

## Response `204`

Successful Response

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
