How to post marcxml record using curl via access token

September 17, 2020 ยท View on GitHub

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