Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Create Collection

Creates a new collection.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Products permission scope.

POST

https://www.wixapis.com/stores/v1/collections

Body Params

NAME
TYPE
DESCRIPTION
collection
Required

object

Collection information.

Response Object

NAME
TYPE
DESCRIPTION
collection

object

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/stores/v1/collections' \
3 --data-binary '{
4 "collection": {
5 "name": "My New Collection"
6 }
7 }' \
8 -H 'Content-Type: application/json' \
9 -H 'Authorization: <AUTH>'

Response

json

1
2{"collection": {
3 "id": "81093e7d-a251-4a22-a238-df3aa816f3dc",
4 "name": "My New Collection",
5 "media": {"items": []}
6}}