PATCH

Update Category


Updates a category.

Authentication

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

Permissions
Manage Blog
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/blog/v3/categories/{category.id}

Path Params
category.idstringRequired

Category ID.

Body Params
categoryCategoryRequired

Category info.


fieldsetsArray <string>maxItems 10

List of additional category fields to include in the response. For example, use the URL fieldset to retrieve the url field in the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default only the category’s base fields are returned.

Response Object
categoryCategory

Category info.

Update Category Example 1
Request
cURL
curl --location --request PATCH 'https://www.wixapis.com/blog/v3/categories/5f2bcaa0879ad500173577f3' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>' \ --data-raw '{ "category": { "description": "Posts about my summer and adventures", }, "fieldMask": "category.description" }'
Response
JSON
{ "category": { "id": "5f2bcaa0879ad500173577f3", "label": "Summer", "postCount": 0, "description": "Posts about my summer and adventures", "title": "Summer", "coverMedia": { "enabled": true, "displayed": true, "custom": true }, "displayPosition": 1, "language": "en", "slug": "summer-slug" } }
Errors

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

Event TriggersThis method triggers the following events:
Did this help?