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

# POST /update-target

`POST /update-target`

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