← 返回首页
ORCID-Source/orcid-api-web/tutorial/works.md at main · ORCID/ORCID-Source · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
177 lines (122 loc) · 9.37 KB
 main
Top

File metadata and controls

  • Preview
  • Code
  • Blame
177 lines (122 loc) · 9.37 KB

Write, update and delete works

This tutorial goes over editing information in the works section of an ORCID record. The work activity type is intended to link to the research outputs of the ORCID record holder.

This workflow can be used with Member API credentials on sandbox or the production servers.

Overview

Scopes: /activities/update and /read-limited

Method: 3 step OAuth

Endpoints: /work and /works

Sample XML files:

Permission to edit the record

Editing the work section of a record requires a 3 step OAuth token with the /activities/update scope, the /read-limited scope should also be requested for reading works. See Authenticating using OAuth for steps to obtain a token.

Work fields

  • title (required) The title of the work

  • subtitle (optional) A subtitle to the work

  • translated-title (optional) The title the work appears under in another language, the language of the translated title is recorded as an attribute

  • journal-title (optional) The name of a larger collection the work belongs to, such as a journal for journal articles or a book for book chapters

  • short-description (optional) A brief description or abstract of the work

  • citation-type (optional) The format the citation is provided in. This field is selected from the following list: APA, BIBTEX, CHICAGO, HARVARD, IEEE, MLA, RIS, UNSPECIFIED, VANCOUVER

  • citation-value (optional) The contents of the citation

  • work-type (required) The type of object the work is. This field must be selected from the supported work types

  • publication-date (optional) The date the work was completed

  • external-id-type (required) The type of identifier. This field must be selected from the supported work identifiers

  • external-id-value (required) The identifier itself

  • external-id-url (optional) A url the identifier resolves to

  • external-id-relationship (required) Identifiers that apply only to the work being added should be marked as self. Identifiers that apply to a larger collection this work belongs to should be set to part-of. Identifiers that apply to alternate versions of the work should be set to version-of. Identifiers that apply to the funding for the work should be set to funded-by.

  • work-url (optional) A url linking to the work

  • work-contributors (optional) Information about the individuals who created the work

  • language-code (optional) The language used to describe the work in the previous fields

  • country (optional) A country the work was published in or otherwise associated with

Read a summary of all works on a record

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/works
Method GET
header Authoriczation: 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/works'

Read a single work

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/work/[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/work/733536'

Read multiple works (up to 100)

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/works/[put-code-1],[put-code-2],[put-code-3]
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/works/733535,733536'

Post one new work

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/work
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]/work.xml' -X POST 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/work'

Post multiple works (up to 100)

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/works
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]/works.xml' -X POST 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/works'

Update a single work

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/work/[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]/work-updated.xml' -X PUT 'https://api.sandbox.orcid.org/v2.1/0000-0002-9227-8514/work/[PUT-CODE]'

Delete a single work

Parameter Value
URL https://api.[host]/[version]/[ORCID iD]/work/[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/work/[PUT-CODE]'

Footer

© 2026 GitHub, Inc.