How do I update my DOIs to metadata schema version 4 with the DataCite REST API?

To update DOIs from an older version to schema 4 with the REST API you should specify an explicit update to version 4 for your DOIs using the attribute field "schemaVersion".

Example:

{

  "data": {

   "id": "10.0138/1f84-ta02",

   "type": "dois",

   "attributes": {

    "doi": "10.0138/1f84-ta02",

    "schemaVersion": "http://datacite.org/schema/kernel-4"

  }

 }

}

Remember that the existing DOI metadata, and any updates, must be compatible with schema 4 as outlined in the DataCite metadata schema documentation.