Skip to content

Reopen a previously-applied refinement suggestion

POST
/v2/refinement/undo
curl --request POST \
--url https://api.surveycoder.io/v2/refinement/undo \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "question_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "suggestion_id": "example" }'

Marks the suggestion as pending again. Does not revert the underlying codebook/coding mutations the suggestion produced — treat this as “reopen”, not a true undo. A real revert is on the roadmap.

Media type application/json
object
project_id
required
string format: uuid
question_id
required
string format: uuid
suggestion_id
required
string
Example generated
{
"project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"question_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"suggestion_id": "example"
}

Suggestion reopened

Suggestion not found