Archive a question
DELETE/v5/questions/{question_id}
Soft-delete a question by setting its archived_at timestamp.
This is not a permanent delete: the row is retained and can be brought back
with the restore endpoint. Once archived, the question is excluded from list
results by default (unless include_archived is set) and can no longer be
updated until it is restored. The archived question is returned in the
response with its archived_at populated.
Archive a question
curl https://api.egp.scale.com/v5/questions/$QUESTION_ID \
-X DELETE \
-H "x-api-key: $SGP_API_KEY"{
"id": "id",
"configuration": {
"choices": [
"string"
],
"dropdown": true,
"multi": true
},
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"name": "name",
"prompt": "prompt",
"archived_at": "2019-12-27T18:11:19.117Z",
"conditions": [
{
"foo": "bar"
}
],
"object": "question",
"question_type": "categorical"
}Returns Examples
{
"id": "id",
"configuration": {
"choices": [
"string"
],
"dropdown": true,
"multi": true
},
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"name": "name",
"prompt": "prompt",
"archived_at": "2019-12-27T18:11:19.117Z",
"conditions": [
{
"foo": "bar"
}
],
"object": "question",
"question_type": "categorical"
}