---
title: "Open or close collection acceptance, or irreversibly revoke its credential."
method: PATCH
path: "/v1/collections/{id}"
---

# Open or close collection acceptance, or irreversibly revoke its credential.

`PATCH /v1/collections/{id}`

## Request

- Base URL: `http://127.0.0.1:8080`
- URL: `http://127.0.0.1:8080/v1/collections/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `X-Likerts-Workspace` string

## Request body

- AcceptanceInput
  - `accepting` boolean
  - `revoke` unknown

## Response `200`

Success

- Acceptance
  - `id` string, uuid, required
  - `accepting` boolean, required
  - `revoked` boolean, required

## Other responses

- `400`: Invalid JSON, unknown fields or domain validation failure.
- `401`: Missing/invalid bearer credential, including wrong collection credential.
- `403`: The credential scope, membership or role does not permit this operation.
- `404`: Resource absent or belongs to another workspace.
- `409`: Reopening would exceed the workspace's active collection limit.
- `410`: The collection is expired or irrevocably revoked.
- `413`: Request body exceeds 65536 bytes.
- `415`: Content-Type must be application/json.
- `429`: Admission or collection rate limit reached. Honor Retry-After in seconds; admission usually returns1, the collection minute window returns60.
- `500`: Internal failure; do not assume a write failed. Retry only with its original idempotency key and payload.
- `503`: Distributed request admission is temporarily unavailable. No protected handler ran; honor Retry-After.

---

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