---
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, nullable, required
      - `documentTypeId` string, required
      - `documentClass` string, nullable, required
      - `documentType` object, required
        - `id` string, required
        - `title` string, required
        - `documentClass` 'TRANSACTIONAL' | 'COMPANY' | 'PRODUCT', required
        - `isDeprecated` boolean, required
        - `impactAreaId` string, nullable, required
      - `createdAt` string, date-time, nullable, required
      - `updatedAt` string, date-time, nullable, required
      - `isArchived` boolean, required
      - `metadata` object, required

## Other responses

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

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 5 breaking, 5 info
  - the response property `data/documents/items/createdAt` became nullable for the status `200`
  - the response property `data/documents/items/documentClass` became nullable for the status `200`
  - the response property `data/documents/items/documentType/impactAreaId` became nullable for the status `200`
  - the response property `data/documents/items/fileUrl` became nullable for the status `200`
  - …6 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/styles/:id/style-documents/bulk-archive/post.md)

---

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