---
title: "Deactivates (soft-deletes) an item."
method: DELETE
path: "/api/v1/items/{id}"
tags: ["Items"]
---

# Deactivates (soft-deletes) an item.

`DELETE /api/v1/items/{id}`

## Request

- Base URL: `https://app.flexonthejob.com`
- URL: `https://app.flexonthejob.com/api/v1/items/{id}`
- Auth: HTTP bearer

Requires `ManageInventory` and an `Idempotency-Key` header. Same as
"Deactivate" on the Items page: the item leaves the catalogue and this API (GETs answer
404), its physical inventory rows and history are untouched, and a user can restore it
from Items → Deactivated Items in the app. A parent group that still contains active
items is refused with `409`; repeat with `?cascadeChildren=true` to deactivate
the group and its items together (each restorable individually).

## Path parameters

- `id` integer, required

## Query parameters

- `cascadeChildren` boolean

## Response `200`

The item was deactivated; body carries its id and a confirmation (mentions cascaded children when any).

- ApiOperationResponse: Body of a successful workflow-style write that has no richer resource to return (assign, start, complete, void…). Id is the affected resource's id; Warning carries a non-fatal note from the service (e.g. an email that could not be sent).
  - `id` integer: Id of the resource the operation acted on (e.g. the job id).
  - `message` string, nullable: Human-readable confirmation from the service (e.g. "Job started."). May be null.
  - `warning` string, nullable: Non-fatal problem encountered while completing the operation (e.g. a notification email that could not be sent). Null when there was none.

## Other responses

- `400`: Missing `Idempotency-Key`.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: No such active item in this organization.
- `409`: The group still contains active items and `cascadeChildren` was not set, or the key's creator is unknown on this server.
- `429`: Too Many Requests

---

[API](https://skmtc.dev/flexonthejob/apis/flex-api.md) · [All operations](https://skmtc.dev/flexonthejob/apis/flex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flexonthejob/apis/flex-api/revisions/19c8f4d27acf?raw)
