---
title: "POST /set-item-state"
method: POST
path: "/set-item-state"
tags: ["General"]
---

# POST /set-item-state

`POST /set-item-state`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/set-item-state`
- Auth: none declared

## Request body

- SetItemState
  - `desired-state` string, required: Desired item state (Enabled, Disabled)
  - `json` boolean: Set output format to JSON
  - `name` string, required: Current item name
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication
  - `version` integer: The specific version you want to update: 0=item level state (default) (relevant only for keys)

## Response `200`

setItemStateResponse wraps response body.

- SetItemStateOutput

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/account-settings.md) - [All operations](https://skmtc.dev/akeyless/apis/account-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/account-settings/revisions/6beb28d274ac?raw)
