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

# POST /create-linked-target

`POST /create-linked-target`

## Request

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

## Request body

- CreateLinkedTarget: createLinkedTarget is a command that creates a new Linked Target which can inherit credentials from existing Targets. [Deprecated: Use target-create-linked command]
  - `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
  - `name` string, required: Target name
  - `parent-target-name` string: The parent Target name
  - `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`

createLinkedTargetResponse wraps response body.

- CreateLinkedTargetOutput
  - `target_id` integer

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