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

# POST /update-linked-target

`POST /update-linked-target`

## Request body

- UpdateLinkedTarget — updateLinkedTarget is a command that updates an existing target. [Deprecated: Use target-update-linked command]
  - `add-hosts` string — A comma seperated list of new server hosts and server descriptions joined by semicolon ';' that will be added to the Linked Target hosts.
  - `description` string — Description of the object
  - `hosts` string — A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description')
  - `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
  - `name` string, required — Linked Target name
  - `new-name` string — New Linked Target name
  - `parent-target-name` string — The parent Target name
  - `rm-hosts` string — Comma separated list of existing hosts that will be removed from Linked Target hosts.
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `type` string — Specifies the hosts type, relevant only when working without parent target
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

updateLinkedTargetResponse wraps response body.

- UpdateLinkedTargetOutput

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