This tutorial goes over editing information in the affiliations section of an ORCID record. Versions of the ORCID API before 3.0 include the Education and Employment affiliation sections. Versions 3.0 and greater include the following sections: Education, Employment, Distinction, Invited position, Membership, Qualification and Service.
These calls can be used with Member API credentials on sandbox or the production servers.
Distinction: An honorary or other award, distinction, or prize in recognition of your achievements, e.g. trophy, medal, honorary degree.
Education: Participation in an academic higher education program to receive an undergraduate, graduate, or other degree, may be in progress or unfinished.
Employment: formal employment relationship with an organization, e.g. staff, intern, researcher, contractor. Employment can be paid or unpaid.
Invited position: An invited non-employment affiliation, e.g. honorary fellow, guest researcher, emeritus professor.
Membership: Membership in a society or association, not including honorary memberships and fellowships.
Qualification: Participation in a professional or vocational accreditation, certification, or training program, may be in progress or unfinished.
Service: A significant donation of time, money, or other resource, e.g. volunteer society officer, elected board position, extension work.
Scopes: /activities/update
and /read-limited
Method: 3 step OAuth
Endpoints:
- For education items:
/education
and/educations
- For employment items:
/employment
and/employments
- For distinction items (3.0+ only):
/distinction
and/distinctions
- For invited position items (3.0+ only):
/invited-position
and/invited-positions
- For membership items (3.0+ only):
/membership
and/membership
- For qualification items (3.0+ only):
/qualification
and/qualifications
- For service items (3.0+ only):
/service
and/services
Sample XML files:
- reading the education section summary in 2.1
- reading an education item in 2.1
- writing an education item in 2.1
- reading the employment section summary in 2.1
- reading an employment item in 2.1
- writing an employment item in 2.1
- Examples for reading affiliations sections in 3.0
- Examples writing affiliation sections in 3.0
Editing the affiliations sections of a record requires a 3 step OAuth token with the /activities/update
scope, the /read-limited
scope should also be requested for reading items. See Authenticating using OAuth for steps to obtain a token.
-
department-name (optional) The department or subdivision of the organization the affiliation is associated with
-
role-title (optional) The title given for the position, or the degree earned
-
start-date (optional) The date the affiliation began
-
end-date (optional) The date the affiliation ended or will end
-
organization (required) Information about the organization the affiliation was with. A ROR, or Crossref Funder Registry organization identifier is required in 3.0+
-
address (required) Information about the physical location of the organization the affiliation is with. A city and country are required (region is optional)
-
url (optional in 3.0+ only) A URL to a resource about the affiliation
-
external-ids (optional in 3.0+ only) An identifier for the affiliation itself
Parameter | Value |
---|---|
URL | https://api.[host]/[version]/[ORCID iD]/[affiliation section] |
Method | GET |
header | Authorization: Bearer [Your authorization code] |
header | Accept: application/vnd.orcid+json or /vnd.orcid+xml |
Example request in curl
curl -i -H "Accept: application/vnd.orcid+xml" -H 'Authorization: Bearer dd91868d-d29a-475e-9acb-bd3fdf2f43f4' 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/educations'
Example response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activities:educations ... </activities:educations>
Parameter | Value |
---|---|
URL | https://api.[host]/[version]/[ORCID iD]/[affiliation section]/[put-code] |
Method | GET |
header | Authorization: Bearer [Your authorization code] |
header | Accept: application/vnd.orcid+json or /vnd.orcid+xml |
Example request in curl
curl -i -H "Accept: application/vnd.orcid+xml" -H 'Authorization: Bearer dd91868d-d29a-475e-9acb-bd3fdf2f43f4' 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/education/22423'
Parameter | Value |
---|---|
URL | https://api.[host]/[version]/[ORCID iD]/[affiliation section] |
Method | POST |
header | Authorization: Bearer [Your authorization code] |
header | Content-Type: application/vnd.orcid+json or /vnd.orcid+xml |
data | the work you are posting in json or xml format |
Example request in curl
curl -i -H 'Content-type: application/vnd.orcid+xml' -H 'Authorization: Bearer dd91868d-d29a-475e-9acb-bd3fdf2f43f4' -d '@[FILE-PATH]/file_name.xml' -X POST 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/education'
Example response
HTTP/1.1 201 Created
Location: http://api.qa.orcid.org/2.1/0000-0002-9227-8514/education/54563
Parameter | Value |
---|---|
URL | https://api.[host]/[version]/[ORCID iD]/[affiliation section]/[put-code] |
Method | PUT |
header | Authorization: Bearer [Your authorization code] |
header | Content-Type: application/vnd.orcid+json or /vnd.orcid+xml |
data | the updated work in json or xml format |
Example request in curl
curl -i -H 'Content-type: application/vnd.orcid+xml' -H 'Authorization: Bearer dd91868d-d29a-475e-9acb-bd3fdf2f43f4' -d '@[FILE-PATH]/file_name_updated.xml' -X PUT 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/education/54563'
Parameter | Value |
---|---|
URL | https://api.[host]/[version]/[ORCID iD]/[affiliation section]/[put-code] |
Method | DELETE |
header | Authorization: Bearer [Your authorization code] |
header | Content-Type: application/vnd.orcid+json or /vnd.orcid+xml |
Example request in curl
curl -i -H 'Content-type: application/vnd.orcid+xml' -H 'Authorization: Bearer dd91868d-d29a-475e-9acb-bd3fdf2f43f4' -X DELETE 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/education/54563'
Example response
HTTP/1.1 204 No Content