---
title: "Update Credential"
method: PUT
path: "/api/v1/credentials/{credential_uuid}"
tags: ["main"]
---

# Update Credential

`PUT /api/v1/credentials/{credential_uuid}`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/credentials/{credential_uuid}`
- Auth: none declared

Update a webhook credential.

Args:
    credential_uuid: The UUID of the credential to update
    request: The update request

Returns:
    The updated credential (without sensitive data)

## Path parameters

- `credential_uuid` string, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- UpdateCredentialRequest: Request schema for updating a webhook credential.
  - `name` string, nullable
  - `description` string, nullable
  - `credential_type` 'none' | 'api_key' | 'bearer_token' | 'basic_auth' | 'custom_header': Webhook credential authentication types
  - `credential_data` object, nullable

## Response `200`

Successful Response

- CredentialResponse: Response schema for a webhook credential (never includes sensitive data).
  - `uuid` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `credential_type` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required

## Other responses

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

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/credentials/:credential_uuid/put.md)

---

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