---
title: "POST /api/styles/{id}/style-documents/bulk-archive"
method: POST
path: "/api/styles/{id}/style-documents/bulk-archive"
tags: ["Styles/Documents"]
---

# POST /api/styles/{id}/style-documents/bulk-archive

`POST /api/styles/{id}/style-documents/bulk-archive`

Archives or unarchives multiple documents attached to the given style in a single request. All-or-nothing: if the style is not visible to the caller's company, or any id is unknown / belongs to a different style, the request is rejected with a 404 (details.styleDocumentIds lists the offending ids where relevant) and no documents are modified. Direction is set by the isArchived boolean in the body.

## Path parameters

- `id` string, required

## Request body

- object
  - `ids` string[], required
  - `isArchived` boolean, required

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `documents` object[], required
      - `id` string, required
      - `name` string, required
      - `fileId` string, required
      - `fileUrl` string, required
      - `documentTypeId` string, required
      - `documentClass` string, required
      - `documentType` object, required
        - `id` string, required
        - `title` string, required
        - `documentClass` 'TRANSACTIONAL' | 'COMPANY' | 'PRODUCT', required
        - `isDeprecated` boolean, required
        - `impactAreaId` string, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `isArchived` boolean, required
      - `metadata` object, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `404` — Default Response

---

[API](https://skmtc.net/retraced/apis/api-reference.md) · [All operations](https://skmtc.net/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/60d6c901bc4e/schema)
