v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
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

idstring

The identifier of the preprint entity.

typestring required

The type identifier of the preprint entity (preprints).

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