updateCategory( )


Updates a category.

Each time the category is updated, revision increments by 1. You must specify the current revision to prevent unintended overwrites.

You can't adjust a categories sortOrder with this method, call Move Category instead.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Bookings
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
categoryUpdateCategoryRequired

_idstringRequired

Category ID.

Returns
Return Type:Promise<Category>
Errors

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

Did this help?