---
title: "Disable or enable auto depletion"
method: POST
path: "/features/catalog-item/auto-depletion"
tags: ["Auto depletion"]
---

# Disable or enable auto depletion

`POST /features/catalog-item/auto-depletion`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/features/catalog-item/auto-depletion`
- Auth: OAuth 2
  - Authorization code: `https://localhost/oauth2/authorize`
  - Token URL: `https://localhost/oauth2/authorize`

disable or enable auto depletion in inventory

## Request body

- ToggleAutoDepletionRequest: Toggle auto depletion for a specific partner.
  - `disabled` boolean, required: Feature enable or disable (true - disable, false - enable)

## Response `200`

Successful response

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/grubtech/apis/inventory-service.md) - [All operations](https://skmtc.dev/grubtech/apis/inventory-service/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/inventory-service/revisions/8e275e5431a4?raw)
