| Name | Type | Description |
|---|---|---|
userKey | string | Unique identifier of the user (derived from authentication context) |
id | UUID | Unique identifier of the user survey participation |
| Current Status | Result |
|---|---|
NotStarted | Transitions directly to Abandoned |
InProgress | Preserves partial answers and transitions to Abandoned |
Completed | β Not allowed (returns 400 Bad Request) |
Abandoned | No change (idempotent operation) |
| Error Code | Description |
|---|---|
USER_SURVEY_NOT_FOUND | Invalid survey ID or user does not have access |
CANNOT_ABANDON_COMPLETED_SURVEY | Survey participation has already been completed |
curl --location -g --request DELETE 'api/v1/user/{{user-key}}/surveys/'{
"id": "string",
"surveyId": "string",
"userKey": "string",
"companyId": "string",
"status": 0,
"startedAt": "string",
"completedAt": "string",
"updatedDate": "string",
"createdDate": "string",
"surveyName": "string",
"surveyDescription": "string",
"surveyStartDate": "string",
"surveyEndDate": "string",
"totalQuestions": 0,
"answeredQuestions": 0,
"progressPercentage": 0,
"questions": [
{
"id": "string",
"surveyId": "string",
"questionType": 0,
"question": "string",
"orderQuestion": 0,
"choices": [
"string"
],
"createdDate": "string",
"updatedDate": "string",
"localizedQuestions": {
"ar": "string",
"en": "string"
},
"localizedChoices": {
"ar": [
"string"
],
"en": [
"string"
]
}
}
],
"answers": [
{
"id": "string",
"questionId": "string",
"question": "string",
"answer": "string",
"answeredAt": "string"
}
]
}