...
Prior to uploading data to a record, the system needs to generate its global identifier and map it to the local one. You can do this by making https://cloud.europeana.eu/docs/now/uis/index.html#-1895778121 request.
Code Block | ||
---|---|---|
| ||
curl -X POST --user user:password -i https://cloud.europeana.eu/api/cloudIds?providerId=exampleProviderPSNC\&recordId=exampleLocalRecord |
...
The response will contain the mapping between the local record and the newly created identifier LE27IU4ZYQP4OQU2EJLCT2LSSDZO2YVIJYX27JWT4RN7PQNF76IA X67WPA7NGCZUKLACPWU3BORRGQUWTKSZNZDICEGZS6IXTRMINOIQ:
Code Block |
---|
...
<?xml version="1.0" encoding="UTF-8"?> <cloudId> <id>X67WPA7NGCZUKLACPWU3BORRGQUWTKSZNZDICEGZS6IXTRMINOIQ</id> <localId> |
...
<providerId>PSNC</providerId> |
...
<recordId>exampleLocalRecord</recordId> |
...
</localId>
</cloudId>
|
You can also choose not to provide a local identifier if it will not be used
Code Block |
---|
curl |
-X POST --user user:password https://cloud.europeana.eu/api/cloudIds?providerId=exampleProvider |
The newly created global identifier and a local one can be found in the response:
Code Block |
---|
...
<?xml version="1.0" encoding="UTF-8"?> <cloudId> <id>745XTNGBTQBVVFFZ7XF5QETU7ECIUGHKUXBJ3DNRIN3WCKRPOVVQ</id> <localId> |
...
<providerId>PSNC</providerId> |
...
<recordId>4TIRTYXNTQ2LNDWWVDKMK6TJJMJJM3I6WO4IBIDB6ORYXQB5TZIQ</recordId> |
...
</localId>
</cloudId> |
Listing
You can browse all the global ids associated with a specific data provider using the /cloudIdsREST endpoint:
...