Add a collection
post/shop/collections
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:admin- Mcp
rivier_shop_collection_create- Sdk
shop.collection.create- Cli
shop collection create
Request bodyapplication/json, required
- namestringrequiredAt most 120 characters.
- slugstringrequiredPattern: ^[a-z0-9][a-z0-9-]{0,62}$.
- kindstringOne of: manual, rule. Default: manual.
- ruleobject
- matchstringOne of: all, any. Default: all.
- conditionslist of objectrequired
- fieldstringrequiredPattern: ^(price|stock|on_sale|in_stock|name|slug|tag|attribute:[a-z][a-z0-9_]{0,39})$.
- opstringrequiredOne of: eq, neq, gte, lte, gt, lt, contains, in.
- valuestring or number or boolean or list of string or number or booleanrequired
- fieldstringrequired
- matchstring
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring