---
title: "PUT /catalog/usql/databases/{databaseName}/credentials/{credentialName}"
method: PUT
path: "/catalog/usql/databases/{databaseName}/credentials/{credentialName}"
tags: ["Catalog"]
---

# PUT /catalog/usql/databases/{databaseName}/credentials/{credentialName}

`PUT /catalog/usql/databases/{databaseName}/credentials/{credentialName}`

Creates the specified credential for use with external data sources in the specified database.

## Path parameters

- `databaseName` string, required
- `credentialName` string, required

## Query parameters

- `api-version` string, required

## Request body

- DataLakeAnalyticsCatalogCredentialCreateParameters — Data Lake Analytics catalog credential creation parameters.
  - `password` string, required — the password for the credential and user with access to the data source.
  - `uri` string, required — the URI identifier for the data source this credential can connect to in the format <hostname>:<port>
  - `userId` string, required — the object identifier for the user associated with this credential with access to the data source.

## Response `200`

Successfully created the credential within the specified database.

---

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