---
title: "PATCH /catalog/usql/databases/{databaseName}/secrets/{secretName}"
method: PATCH
path: "/catalog/usql/databases/{databaseName}/secrets/{secretName}"
tags: ["Catalog"]
deprecated: true
---

# PATCH /catalog/usql/databases/{databaseName}/secrets/{secretName}

`PATCH /catalog/usql/databases/{databaseName}/secrets/{secretName}`

> **Deprecated.**

Modifies the specified secret for use with external data sources in the specified database. This is deprecated and will be removed in the next release. Please use UpdateCredential instead.

## Path parameters

- `databaseName` string, required
- `secretName` string, required

## Query parameters

- `api-version` string, required

## Request body

- DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters — Data Lake Analytics catalog secret creation and update parameters. This is deprecated and will be removed in the next release. Please use DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead.
  - `password` string, required — the password for the secret to pass in
  - `uri` string — the URI identifier for the secret in the format <hostname>:<port>

## Response `200`

Successfully updated the details of the specified secret in 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)
