Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 472 Bytes

post-marcxml-curl.md

File metadata and controls

13 lines (8 loc) · 472 Bytes

How to post marcxml record using curl via access token

You can post marcxml record via an access token using the api documents as follows:

assuming that your token is: my_token and the xml record is saved in document.xml

curl -k -L -H "Authorization: Bearer my_token"  -H 'Content-Type:application/marcxml+xml' --data-binary "@./document.xml" -POST https://~/api/documents/

How to generate an access token