Delete Survey Template
URL |
Required Values |
HTTP Methods |
|---|---|---|
Template ID |
DELETE |
Soft-deletes a survey template. The record is not permanently removed from the database.
Replace <id> with the template ID.
Sample Request:
DELETE /api/v1/survey-templates/3/
Authorization: Token <token>
Sample Response (200 OK):
{
"message": "Survey template deleted successfully."
}
Error Response (404 Not Found):
{ "detail": "No SurveyTemplate matches the given query." }