Update a draft registration
Updates a draft registration by setting the values of the attributes specified in the request body. Any unspecified attributes will be left unchanged.
Draft Registrations contain Registration questions that will become part of the Registration. Answer the questions in the draft registration supplement by sending update requests until you are ready to submit the draft.
The registration supplement of a draft registration cannot be updated after the draft has been created.
When updating a draft registration, registration_metadata is required. It must be a dictionary with keys as question ids in the registration form, and values as nested dictionaries matching the specific format in the [registration schema](TODO: link me pls).
If a question is multiple-choice, the question response must exactly match one of the possible choices.
Permissions
Only project administrators may update draft registrations.
Returns
Returns a JSON object with a data key containing the new representation of the updated draft registration, if the request is successful.
If the request is unsuccessful, an errors key containing information about the failure will be returned. Refer to the list of error codes to understand why this request may have failed.
Path parameters
The unique identifier of the node.
The unique identifier of the draft registration.
Request body
Example request
{
"data": {
"type": "draft_registrations",
"relationships": {
"registration_schema": {
"data": {
"id": "61e02b6c90de34000ae3447a",
"type": "registration_schemas"
}
}
}
}
}Response
OK