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

# POST /update-linked-target

`POST /update-linked-target`

## Request

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

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