---
title: "Update Inventory Status"
method: PUT
path: "/api/inventory/v2/inventories/{schemaName}/{id}/status"
tags: ["Inventory"]
---

# Update Inventory Status

`PUT /api/inventory/v2/inventories/{schemaName}/{id}/status`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/inventory/v2/inventories/{schemaName}/{id}/status`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INVENTORY`, `INVENTORY_WRITE`, `DATA_MAPPING_INVENTORY_CHANGE_STATUS`

Use this API to change the existing status of an inventory.

## Path parameters

- `schemaName` 'processing-activities' | 'vendors' | 'assets' | 'entities', required
- `id` string, uuid, required

## Request body

- KeyNameDto
  - `key` string, required: The key identifier
  - `name` string: The display name associated with the key

## Response `200`

OK - Inventory status successfully updated.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/revisions/daead5d9fad6?raw)
