PATCH

Update Category


Updates an existing category.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Events
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/events/v1/categories/{category.id}

Path Params
category.idstringRequired

Category ID.

Body Params
categoryCategoryRequired

Category to update.

Response Object
categoryCategory

Updated category.

Update Category Example 1
Request
cURL
curl -X PATCH 'https://www.wixapis.com/events/v1/categories/6c313b96-1961-4f0f-b6d7-61788e1a25df' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ { "category": { "name": "workshop-leather" } }
Response
JSON
{ "category": { "id": "6c313b96-1961-4f0f-b6d7-61788e1a25df", "name": "workshop-leather", "states": ["MANUAL"] "createdDate": "2021-04-01T09:55:31.335Z" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?