---
title: "PUT /credentials/{credentialName}"
method: PUT
path: "/credentials/{credentialName}"
tags: ["Credential"]
---

# PUT /credentials/{credentialName}

`PUT /credentials/{credentialName}`

Creates or replaces an instance of a credential.

## Path parameters

- `credentialName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Credential — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Response `200`

Success.

- Credential — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Other responses

- `201` — Success.
- `default` — An error response received from the Scanning Service.

## Changes

- **2026-07-13** (2018-12-01-preview) `1dc732ab31fc` — 1 info
  - api operation id `Credential_CreateOrUpdate` removed and replaced with `Credential_CreateOrReplace`
- **2026-07-13** (2018-12-01-preview) `68c76969d42d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/purview-scanning/changes/credentials/:credentialName/put.md)

---

[API](https://skmtc.dev/azure/apis/purview-scanning.md) · [All operations](https://skmtc.dev/azure/apis/purview-scanning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/purview-scanning/revisions/1dc732ab31fc/schema)
