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

# POST /update-target

`POST /update-target`

## Request

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

## Request body

- UpdateTarget
  - `delete_protection` string: Protection from accidental deletion of this object [true/false]
  - `description` string: Description of the object
  - `json` boolean: Set output format to JSON
  - `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.
  - `name` string, required: Target name
  - `new-comment` string: Deprecated - use description
  - `new-name` string: New target name
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

updateTargetResponse wraps response body.

- UpdateTargetOutput
  - `updated` boolean

## 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)
