(Quick Reference)
Service: Delete a question
Description: Returns a JSON response.
URL:
https://BASE_URL/api/VERSION/questions/{id}
Method: DELETE
Parameters:
Name | Description | Type | Required | Example values |
---|
id | The numerical ID of the desired question | Integer | yes | 123 |
Success Output
Success case: response.status = 200
{
"success": "true",
"success_description": "Instance deleted successfully"
}
Failure Output
Failure case: response.status = 400
{
"error": "delete_failed",
"error_description": "Failed to delete instance."
}
{
"error": "delete_not_authorized",
"error_description": "Question with answers could not be deleted"
}
Failure case: response.status = 404
{
"error": "not_found",
"error_description": "The question with the id 123 doesn't exist."
}