Transition a submission to `APPROVED`, `REJECTED`, `PARTIALLY APPROVED`, `AWAITING REVIEW` or `SCREENED OUT`. Once the status is changed, it can not be restored to its previous value.
You can only transition a submission to PARTIALLY APPROVED or SCREENED OUT by:
- setting up the study with the appropriate completion codes (only some workspaces have access to these features)
- providing the correct completion code in the request body
- providing the necessary data in the request body (to PARTIALLY APPROVE a submission)
Note this endpoint is idempotent, so if you make the same request twice, the second request will be ignored.
Request
This endpoint expects an object.
actionenumRequired
The action that should be performed on the submission.
messagestringOptional
Required if action is 'REJECT'. Message sent to the participant
explaining the reason for the rejection.
It must be at least 100 chars long.
rejection_categoryenumOptional
Required if action is 'REJECT', it sums as the category of
the rejection.
completion_codestringOptional
Required if the action is ‘COMPLETE’. The completion code must match a value provided when creating the study, and the actor must have been set to researcher. Any actions that were provided during the set up of the completion code (e.g. automatically approve) will then be carried out.
completion_code_dataobjectOptional
Required if the action is ‘COMPLETE’ and the code has the action “DYNAMIC_PAYMENT” associated with it.
Response
OK
idstringRead-only
The id of the submission
started_atstring
The date and time that the user started the submission (UTC)
statusenum
The current status of the submission
completed_atstring or null
The time the submission was completed at.
entered_codestring or null
The completion code used by the participant to complete the study.
participantstring
Participant id.