---
title: "POST /update-salesforce-target"
method: POST
path: "/update-salesforce-target"
tags: ["v2"]
---

# POST /update-salesforce-target

`POST /update-salesforce-target`

## Request body

- UpdateSalesforceTarget — updateSalesforceTarget is a command that updates a new target. [Deprecated: Use target-update-salesforce command]
  - `app-private-key-data` string — Base64 encoded PEM of the connected app private key (relevant for JWT auth only)
  - `auth-flow` string, required — type of the auth flow ('jwt' / 'user-password')
  - `ca-cert-data` string — Base64 encoded PEM cert to use when uploading a new key to Salesforce
  - `ca-cert-name` string — name of the certificate in Salesforce tenant to use when uploading new key
  - `client-id` string, required — Client ID of the oauth2 app to use for connecting to Salesforce
  - `client-secret` string — Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
  - `comment` string — Deprecated - use description
  - `description` string — Description of the object
  - `email` string, required — The email of the user attached to the oauth2 app used for connecting to Salesforce
  - `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)
  - `max-versions` string — Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required — Target name
  - `new-name` string — New target name
  - `password` string — The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
  - `security-token` string — The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
  - `tenant-url` string, required — Url of the Salesforce tenant
  - `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

## Response `200`

updateSalesforceTargetResponse wraps response body.

- UpdateSalesforceTargetOutput
  - `target_id` integer

## Other responses

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

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
