Put Codes

62 views
Skip to first unread message

Andrew Devenish-Meares

unread,
Dec 14, 2017, 6:03:56 PM12/14/17
to orcid-a...@googlegroups.com

Dear All,

 

Looking at: https://members.orcid.org/api/tutorial/update-orcid-records

 

When we write to the record, we should expect a put code.  How is it returned?  In the header? In the body?

 

Thanks

 

ADM

 

 

UNE Logo with Good Universities Guide 2018 five stars for Overall Experience and Teaching Quality   Voice Project IT Service Quality Benchmarks - Winner 2017 for Student IT Service Quality


Andrew Devenish-Meares
ORCID iD orcid.org/0000-0003-1436-895X

 

Solutions Analyst/Programmer
Administrative Applications, Information Services

Information Technology Directorate


University of New England
Armidale NSW 2351 Australia

Phone  61 2 6773 4098

Skype For Business adev...@une.edu.au
Email  adev...@une.edu.au

 

www.une.edu.au

University of New England CRICOS Provider Number 00003G

 

Wilmers, Catalina

unread,
Dec 14, 2017, 6:47:16 PM12/14/17
to Andrew Devenish-Meares, orcid-a...@googlegroups.com
Hi,

The put-code is returned in the location header. Here's an example header returned when posting a work, the put-code is 911932:

HTTP/1.1 201 Created
Server: nginx/1.10.0
Date: Thu, 14 Dec 2017 23:33:15 GMT
Content-Type: application/vnd.orcid+xml; qs=5;charset=UTF-8
Content-Length: 0
Connection: keep-alive
Access-Control-Allow-Origin: *
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Location: http://api.sandbox.orcid.org/orcid-api-web/v2.0/0000-0001-7310-2137/work/911932

You can also get the put-codes in the body of the record when you read it, for this work it looks like:

<work:work-summary put-code="911932" path="/0000-0001-7310-2137/work/911932" visibility="public" display-index="0">

Best,
-Catalina

--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-users+unsubscribe@googlegroups.com.
To post to this group, send email to orcid-api-users@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages