# Sweeps specified blocks, for each block that meets the requirements. The request may be partially successful. `SweepBlocks` `POST /api/ordermanagement/SweepBlocks` - [OpenAPI fragment](https://www.lusid.com/docs/api/lusid/endpoints/order-management/SweepBlocks.json) - [Rendered page](https://www.lusid.com/docs/api/lusid/endpoints/order-management/SweepBlocks) The requirements are: The block exists.All orders have state "Closed", "Cancelled", "Canceled" or "Booked".All placements have state "Allocated" or "Over-allocated".All allocations have state "Closed", "Cancelled", "Canceled" or "Booked".No execution or allocation has been modified since the passed LatestAllowableModificationTime. ## Referenced schemas - [SweepBlocksRequest](https://www.lusid.com/docs/api/lusid/schemas/SweepBlocksRequest.txt) - [SweepBlocksResponse](https://www.lusid.com/docs/api/lusid/schemas/SweepBlocksResponse.txt) [< Order Management](https://www.lusid.com/docs/api/lusid/endpoints/order-management/llms.txt)