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

# POST /create-artifactory-target

`POST /create-artifactory-target`

## Request body

- CreateArtifactoryTarget — createArtifactoryTarget is a command that creates a new target. [Deprecated: Use target-create-artifactory command]
  - `artifactory-admin-name` string, required — Artifactory Admin Name
  - `artifactory-admin-pwd` string, required — Artifactory Admin password
  - `base-url` string, required — Base URL
  - `comment` string — Deprecated - use description
  - `description` string — Description of the object
  - `json` boolean — Set output format to JSON
  - `key` string — The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `max-versions` string — Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required — 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`

createArtifactoryTargetResponse wraps response body.

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