---
title: "Update Credential"
method: PATCH
path: "/credentials/{credential_name}"
tags: ["credential management"]
---

# Update Credential

`PATCH /credentials/{credential_name}`

[BETA] endpoint. This might change unexpectedly.

## Path parameters

- `credential_name` string, required — The credential name, percent-decoded; may contain slashes

## Request body

- CredentialItem
  - `credential_name` string, required
  - `credential_info` object, required
  - `credential_values` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/credentials/:credential_name/patch.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/731afbea6a1b?raw)
