PUT

Update Category


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates an existing category. Replaces all existing data for this category.

Authentication

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

Permissions
Manage FAQ
Learn more about app permissions.
Endpoint
PUT
https://www.wixapis.com/faq/v1/categories/{category.id}

Path Params
category.idstringRequired

Category ID.

Body Params
categoryCategory

Category to update.

Response Object
categoryCategory

Updated category.

Update Category Example 1
Request
cURL
curl --request POST \ --url https://www.wixapis.com/faq/v1/categories \ --header 'Authorization: <AUTH>' \ --header 'Content-Type: application/json' \ --data '{ "category": { "title": "updated", "id": "myCategoryId", sortOrder: 30 } }'
Response
JSON
{ "category": { "id": "myCategoryId", "title": "updated", "sortOrder": 30 } }
Errors

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

Did this help?