can not update works and affiliation ORCID by CURL

53 views
Skip to first unread message

Tuan Trieu

unread,
Apr 25, 2016, 5:10:09 AM4/25/16
to ORCID API Users

I can not update works and affiliation ORCID by CURL :
curl -H "Content-Type: application/orcid+xml" -H "Authorization: Bearer 33202cab-4e03-4938-ad28-327eca53bb2b" -d "@D:\updated_works.xml" -X PUT https://api.sandbox.orcid.org/v1.2/0000-0002-5780-7855/orcid-works

I think this is a bug, can you check it ?



er.png

Wilmers, Catalina

unread,
Apr 25, 2016, 8:23:12 AM4/25/16
to Tuan Trieu, ORCID API Users
Hi,

Can you send the XML you're trying to PUT and the the call in a text format? I'll use that to test and see if I can figure out what's going wrong.

Thanks,
-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-use...@googlegroups.com.
To post to this group, send email to orcid-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.

Tuan Trieu

unread,
Apr 25, 2016, 9:30:13 PM4/25/16
to ORCID API Users, trieumi...@gmail.com
i sent you XML . see attach file

Vào 19:23:12 UTC+7 Thứ Hai, ngày 25 tháng 4 năm 2016, Catalina Oyler đã viết:
updated_works.xml

Wilmers, Catalina

unread,
Apr 26, 2016, 1:39:42 PM4/26/16
to Tuan Trieu, ORCID API Users
Hi,

The XML you sent doesn't contain any works data, it just has the identifier and orcid-history element. To post or put a work you'll need to include the work to be added or updated in the file. We have a document explaining the XML for orcid-works at http://members.orcid.org/api/xml-orcid-works

Best,
-Catalina
Reply all
Reply to author
Forward
0 new messages