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

Create Category

Developer Preview

Creates a new category.

Authorization

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

Permissions

This endpoint requires the Manage Bookings permission scope.

POST

https://www.wixapis.com/bookings/v1/categories

Body Params

NAME
TYPE
DESCRIPTION
category
Required

object

Category data.

Response Object

NAME
TYPE
DESCRIPTION
category

object

Category data.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Create Category

Create a new category

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/bookings/v1/categories' \
3 -H "Content-Type: application/json" \
4 -H 'Authorization: <AUTH>' \
5 --data '{ "category" : {"name" : "A new Category!"} }'

Response

json

1
2{"category": {
3 "id": "5c272c84-f9c2-4bbb-b55d-1b88c4597bfe",
4 "name": "A new Category!",
5 "status": "CREATED",
6 "sortOrder": 5
7}}