Skip to content

5. POST: an affiliation

In this section, we'll add an education affiliation to our Sandbox record. As you have seen, you can use the API to GET (read) items on the record, and you can also POST (add), PUT (update), and DELETE any section of the record. The only things you need to change are the endpoints and the XML for each section. In the following example we are using the /education endpoint with the correct XML to add the information, but you can just as well add Employment or Works for example. See our Github documentation for more example files and endpoints and the permissions you need for each.

Add an education affiliation

Here's an example Education XML you can use for this exercise:

<?xml version="1.0" encoding="UTF-8"?>
    xmlns:common="" xmlns:education=""
    xsi:schemaLocation=" ../education-3.0.xsd ">   

Still have that Google OAuth Playground window open? If so, continue with step 1 below. If not, you have two options:

  1. Beneath Step 3: Configure request to API, set HTTP Method to POST.

    Google OAuth Playground HTTP method set to POST

  2. In the Request URI field enter:[ORCID ID]/education

    Replace [ORCID ID] with the iD for your Sandbox record, format XXXX-XXXX-XXXX-XXXX

    Google OAuth Playground request URI configuration for adding an education affiliation

  3. Click Content-type > Custom and enter application/vnd.orcid+xml

  4. Click Add, then click Close.

  5. Click Enter request body.

  6. Copy the education affiliation XML at the top of this section and paste it into the Request Body text box
    Google OAuth Playground Request Body configuration for new education affiliation

  7. OPTIONAL: In the Request Body text box, edit the XML to reflect your institution.
    For <disambiguated-organization-identifier>, use the Ringgold Identify database to find the Ringgold ID for your institution (you'll need to register a free Ringgold account in order to search the database).
  8. Click Close.
  9. Click Send the request.
  10. The results will appear in the Request/Response section at right. Scroll to the bottom – if you see HTTP/1.1 201 Created, your education affiliation was successfully added!
    Google OAuth Playground response for successful education affiliation POST request
  11. Visit the public view of your Sandbox record at[ORCID ID] to see your new education affiliation.
    ORCID record with new education affiliation item added
    Notice that Source shows the name of the API client that added the affiliation - this is a key element that helps other systems consuming ORCID data determine whether this piece of information is authoritative.*