Preprints
Create a preprint
Creates a new preprint.
Returns
Returns a JSON object with a data key containing the representation of the created preprint, 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.
post/preprints/
Request body
Example request
{
"data": {
"attributes": {},
"relationships": {
"node": {
"data": {
"type": "nodes",
"id": "{node_id}"
}
},
"primary_file": {
"data": {
"type": "primary_files",
"id": "{primary_file_id}"
}
},
"provider": {
"data": {
"type": "preprint-providers",
"id": "{provider_id}"
}
}
}
}
}Response
Success