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

# POST /target-update-linked

`POST /target-update-linked`

## Request body

- TargetUpdateLinked
  - `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 `201`

targetUpdateLinkedResponse wraps response body.

- TargetUpdateOutput
  - `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)
