---
title: "Archive a batch of line items by ID"
method: POST
path: "/crm/objects/2026-03/line_items/batch/archive"
tags: ["Batch"]
---

# Archive a batch of line items by ID

`POST /crm/objects/2026-03/line_items/batch/archive`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/crm/objects/2026-03/line_items/batch/archive`
- Auth: none required

Archive multiple line items simultaneously by specifying their IDs in the request body.

## Request body

- BatchInputSimplePublicObjectId: Represents a batch input payload containing a list of simple public object IDs. This component is used when performing batch operations on multiple objects within HubSpot.
  - `inputs` SimplePublicObjectId[], required: An array of simple public object IDs to be processed in the batch operation.
    - `id` string, required: The unique ID of the object.

## Response `204`

No content

## Other responses

- `default`: An error occurred.

## Changes

- **2026-09-22** (2026-03) `2325f49023ab`: 2 info
  - the endpoint scheme security `oauth2` was removed from the API
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-09-10** (2026-03) `0fc4748eb58e`: 2 info
  - the security scope `crm.objects.line_items.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `e-commerce` was removed from the endpoint's security scheme `oauth2`
- **2026-09-09** (2026-03) `d94a8d78689e`: 2 info
  - the security scope `crm.objects.line_items.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `e-commerce` was removed from the endpoint's security scheme `oauth2`
- **2026-09-07** (2026-03) `58b796208433`: 2 info
  - the security scope `crm.objects.line_items.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `e-commerce` was removed from the endpoint's security scheme `oauth2`
- **2026-09-04** (2026-03) `38d0c11c1f77`: 2 info
  - the security scope `crm.objects.line_items.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `e-commerce` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/crm-line-items/changes/crm/objects/2026-03/line_items/batch/archive/post.md)

---

[API](https://skmtc.dev/hubspot/apis/crm-line-items.md) - [All operations](https://skmtc.dev/hubspot/apis/crm-line-items/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/crm-line-items/revisions/6f92161428cc?raw)
