---
title: "POST /update-db-target"
method: POST
path: "/update-db-target"
tags: ["Targets"]
---

# POST /update-db-target

`POST /update-db-target`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/update-db-target`
- Auth: none declared

## Request body

- UpdateDBTarget: updateDBTarget is a command that updates an existing target. [Deprecated: Use target-update-db command]
  - `azure-client-id` string: (Optional) Client id (relevant for "cloud-service-provider" only)
  - `azure-client-secret` string: (Optional) Client secret (relevant for "cloud-service-provider" only)
  - `azure-tenant-id` string: (Optional) Tenant id (relevant for "cloud-service-provider" only)
  - `client-certificate` string: Client certificate for mutual TLS
  - `client-key-passphrase` string: Client private key passphrase for mutual TLS
  - `client-private-key` string: Client private key for mutual TLS
  - `cloud-service-provider` string: (Optional) Cloud service provider (currently only supports Azure)
  - `cluster-mode` boolean: Cluster Mode
  - `comment` string: Deprecated - use description
  - `connection-type` string, required: Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
  - `db-name` string
  - `db-server-certificates` string: (Optional) DB server certificates
  - `db-server-name` string: (Optional) Server name for certificate verification
  - `db-type` string, required
  - `description` string: Description of the object
  - `enable-mtls` boolean: Enable mutual TLS
  - `host` string
  - `json` boolean: Set output format to JSON
  - `keep-prev-version` string: Whether to keep previous version [true/false]. If not set, use default according to account settings
  - `key` string: The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `lock-on-read` string: Lock this secret after each successful value read
  - `lock-ttl` string: Lock TTL in minutes
  - `max-versions` string: Set the maximum number of versions, limited by the account settings defaults.
  - `mongodb-atlas` boolean
  - `mongodb-atlas-api-private-key` string: MongoDB Atlas private key
  - `mongodb-atlas-api-public-key` string: MongoDB Atlas public key
  - `mongodb-atlas-project-id` string: MongoDB Atlas project ID
  - `mongodb-default-auth-db` string: MongoDB server default authentication database
  - `mongodb-uri-options` string: MongoDB server URI options
  - `name` string, required: Target name
  - `new-name` string: New target name
  - `oracle-service-name` string: Oracle db service name
  - `oracle-wallet-login-type` string: Oracle Wallet login type (password/mtls)
  - `oracle-wallet-p12-file-data` string: Oracle wallet p12 file data in base64
  - `oracle-wallet-sso-file-data` string: Oracle wallet sso file data in base64
  - `parent-target-name` string: Name of the parent target, relevant only when connection-type is parent-target
  - `port` string
  - `pwd` string
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `skip-server-name-validation` string: (Optional) Skip server name verification
  - `snowflake-account` string
  - `snowflake-api-private-key` string: RSA Private key (base64 encoded)
  - `snowflake-api-private-key-password` string: The Private key passphrase
  - `ssl` boolean: Enable/Disable SSL [true/false]
  - `ssl-certificate` string: SSL connection certificate
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication
  - `update-version` boolean: Deprecated
  - `user-name` string

## Response `200`

updateDBTargetResponse wraps response body.

- UpdateDBTargetOutput
  - `target_id` integer

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
