Skip to content

Bulk Delete Questions

This endpoint allows the bulk deletion of questions. You can choose to delete all existing questions or just a specific set of them by entering the question IDs.

Terminal window
curl --request POST \
--url https://kong.api.toolzz.com.br/api/content/questions/delete \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"confirmeDeleteAll": "true",
"questions": "123,456"
}'
{
"message": "Questions successfully deleted"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
confirmeDeleteAllstring”true” to delete all registered questions.No
questionsstringIDs of the questions to be deleted, separated by a comma (e.g., “123,456”).No

Warning: At least one of the parameters (confirmeDeleteAll or questions) must be informed. If both are sent, confirmeDeleteAll takes priority.

Danger: Requests with both parameters are interpreted as total exclusion. The action cannot be undone, especially when using confirmeDeleteAll.


KeyTypeDescription
messagestringMessage describing the result of the operation.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.