Set a collection rarity setting

Set how one trait type, or each item's number of traits, counts toward the collection's rarity. exclude leaves it out of rarity while keeping it as a filter; higher_is_rarer ranks larger numeric values or larger trait counts as rarer; frequency scores it normally, which also overrides a contract metadata setting. The setting takes precedence over the contract's contractURI for that trait. Rarity ranks are recomputed in the background after the call returns. Only the collection owner or an authorized editor can change it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Collection slug

Body Params

Request body for setting how one trait counts toward a collection's rarity

string
enum
required

frequency scores the trait normally, exclude leaves it out of rarity (it stays available as a filter), and higher_is_rarer ranks larger numeric values or larger trait counts as rarer.

Allowed:
boolean
Defaults to false

true applies the setting to the number of traits each item has instead of a trait type. Send either trait_type or trait_count, not both.

string

Trait type the setting applies to, matched exactly after trimming. Omit when trait_count is true.

Responses

401

Invalid or missing API key

500

Internal server error. Please open a support ticket so OpenSea can investigate.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*