---
title: "Remove From Batch"
method: POST
path: "/v1/batches/{batch_id}/remove"
tags: ["batches"]
---

# Remove From Batch

`POST /v1/batches/{batch_id}/remove`

Remove a shipment or rate from a batch

## Request body

- RemoveFromBatchRequestBody — A modify batch object
  - `shipment_ids` SeId[] — The Shipment Ids to be modified on the batch
  - `rate_ids` SeId[] — Array of Rate IDs to be modifed on the batch

## Response `204`

The request was successful.

- string

## Other responses

- `400` — The request contained errors.
- `404` — The specified resource does not exist.
- `500` — An error occurred on ShipEngine's side. > This error will automatically be reported to our engineers.

## Changes

- **2024-07-28** `99050ced80fa` — 9 warning, 21 info
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_code` from the response with the `400` status
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_code` from the response with the `404` status
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_code` from the response with the `500` status
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_id` from the response with the `400` status
  - …26 more

[Change history](https://skmtc.dev/shipengine/apis/shipengine-api/changes/v1/batches/:batch_id/remove/post.md)

---

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