---
title: "Set collection visibility"
method: PATCH
path: "/api/v2/collections/{slug}/visibility"
tags: ["Collection Endpoints"]
---

# Set collection visibility

`PATCH /api/v2/collections/{slug}/visibility`

Hide or unhide a collection.

## Path parameters

- `slug` string, required

## Request body

- SetCollectionVisibilityRequest — Request body for setting collection visibility
  - `hidden` boolean, required — Whether the collection should be hidden

## Response `200`

Visibility updated successfully

## Other responses

- `400` — For error reasons, review the response data.
- `401` — Invalid or missing API key
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal server error. Please open a support ticket so OpenSea can investigate.

---

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