POST

Update Questions Visibility In 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 multiple question entries' visibility within their categories.

Endpoint
POST
https://www.wixapis.com/faq/v1/question-entries/update-visibility

Body Params
visibilityArray <QuestionVisibility>

List of visibility updates for questions entries, each containing the ID of the question to update, and optional new values for status, order and categoryId.

Response Object
failuresArray <string>format GUID

List of failed question entry IDs that should be retried.

Update Questions Visibility In Category Example 1
Request
cURL
curl --request POST \ --url https://www.wixapis.com/faq/v1/question-entries/update-visibility \ --header 'Authorization: <AUTH>' \ --header 'Content-Type: application/json' \ --data '{ "visibility": [ { "questionId": "a4ab0d10-7159-47cc-ad72-7688f9750bcb", "categoryId": "originalCategoryID", "orderSequence": 10, "status": "HIDDEN" }, { "questionId": "69015ce8-4f38-4324-88d0-9a55dd0838d0", "categoryId": "updatedCategoryId", "orderSequence": 20, "status": "VISIBLE" }, { "questionId": "01d1816e-00ef-48ff-88eb-5883db01d514", "categoryId": "originalCategoryID", "orderSequence": 30, "status": "HIDDEN" } ] }'
Response
JSON
{ "failures": [] }
Errors

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

Did this help?