v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
Preprints

Update a preprint

Updates the specified preprint by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Returns

Returns a JSON object with a data key containing the new representation of the updated 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.

patch/preprints/{preprint_id}/

Path parameters

preprint_idstring required

The unique identifier of the preprint.

Request body

object required

Example request

{
  "data": {
    "id": "{preprint_id}",
    "attributes": {
      "doi": "{doi}"
    },
    "relationships": {
      "primary_file": {
        "data": {
          "type": "primary_files",
          "id": "{file_id}"
        }
      }
    }
  }
}

Response

OK