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

# POST /update-windows-target

`POST /update-windows-target`

## Request

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

## Request body

- UpdateWindowsTarget: updateWindowsTarget is a command that updates an existing windows target. [Deprecated: Use target-update-windows command]
  - `certificate` string: SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
  - `connection-type` string: Type of connection to Windows Server [credentials/parent-target]
  - `description` string: Description of the object
  - `domain` string: User domain name
  - `hostname` string, required: Server hostname
  - `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
  - `key` string: The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `lock-on-read` string: Lock this secret after each successful value read
  - `lock-ttl` string: Lock TTL in minutes
  - `max-versions` string: Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required: Target name
  - `new-name` string: New target name
  - `parent-target-name` string: Name of the parent target, relevant only when connection-type is parent-target
  - `password` string, required: Privileged user password
  - `port` string: Server WinRM port
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication
  - `update-version` boolean: Deprecated
  - `use-tls` string: Enable/Disable TLS for WinRM over HTTPS [true/false]
  - `username` string, required: Privileged username

## Response `200`

updateWindowsTargetResponse wraps response body.

- UpdateWindowsTargetOutput

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