Collection Endpoints
Set collection visibility
Changed onHide or unhide a collection. Only the collection owner can change visibility. A collection whose minted tokens are held by more than one wallet cannot be hidden; the request fails with 400 and says so.
patch/api/v2/collections/{slug}/visibility
Request
- Base URLhttps://api.opensea.io
- AuthAPI key in header x-api-key and OpenID Connect (https://auth.opensea.io/.well-known/openid-configuration, scopes: write:collections)
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
slugstring required
Collection slug
Request body
Response
Visibility updated successfully
Changes
- info
added the media type
*/*for the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info