DELETE /api/v1/cats/{id}/question/{question}

Permanently removes a question from a CAT. This also removes all student responses to this question.

Path parameters

  • question string Required

    Question ID to delete

  • id Required

    CAT ID (not used in logic but required for route)

Responses

  • 200 application/json

    Question deleted successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 403

    Insufficient permissions or question cannot be deleted (has responses)

  • 404

    Question not found

DELETE /api/v1/cats/{id}/question/{question}
curl \
 --request DELETE 'https://api.echoplain.social/api/v1/cats/123e4567-e89b-12d3-a456-426614174000/question/456e7890-e89b-12d3-a456-426614174001'
Response examples (200)
{
  "message": "Question deleted successfully",
  "success": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}