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.
Request Example
Section titled “Request Example”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" }'Response Example
Section titled “Response Example”{ "message": "Questions successfully deleted"}Request description
Section titled “Request description”Access Token
Section titled “Access Token”| Parameter | Type | Description | Required |
|---|---|---|---|
Authorization | String | Access token (“Bearer” must be before the token) | Yes |
Body Parameters
Section titled “Body Parameters”| Parameter | Type | Description | Required |
|---|---|---|---|
confirmeDeleteAll | string | ”true” to delete all registered questions. | No |
questions | string | IDs 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.
Response description
Section titled “Response description”| Key | Type | Description |
|---|---|---|
message | string | Message describing the result of the operation. |
Security
Section titled “Security”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.