---
title: "Close a collection"
method: POST
path: "/v1/collections/{id}/close"
tags: ["Images"]
---

# Close a collection

`POST /v1/collections/{id}/close`

## Request

- Base URL: `https://api.pixelvault.dev`
- URL: `https://api.pixelvault.dev/v1/collections/{id}/close`
- Auth: HTTP bearer

Mark a collection closed (e.g. on PR merge) and make its images eligible for the reap sweep now, ahead of their TTL.

## Path parameters

- `id` string, required

## Response `200`

The closed collection

## Other responses

- `401`: Invalid or missing API key
- `404`: Collection not found

---

[API](https://skmtc.dev/pixelvault/apis/pixelvault-api.md) · [All operations](https://skmtc.dev/pixelvault/apis/pixelvault-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pixelvault/apis/pixelvault-api/revisions/6332d8c3f8e0?raw)
