# client side $ SWH_CREDS="swh:" $ DEPOSIT_ID=605 $ SWHID="swh:1:dir:ef04a768181417fbc5eef4243e2507915f24deea" # check status is fine $ curl -u $SWH_CREDS "https://deposit.staging.swh.network/1/swh/$DEPOSIT_ID/status/" 605 done The deposit has been successfully loaded into the Software Heritage archive swh:1:dir:ef04a768181417fbc5eef4243e2507915f24deea swh:1:dir:ef04a768181417fbc5eef4243e2507915f24deea;origin=https://www.softwareheritage.org/check-deposit-2020-05-14T08:28:05.683282;visit=swh:1:snp:4577ab1375d35bab6e3165f3ebfddb745b57ee98;anchor=swh:1:rev:a17e7bde68bcbf6f500ea89c8c34d1c6eebfef4f;path=/ check-deposit-2020-05-14T08:28:05.683282 $ file deposit-hal-preprod.xml # some metadata file deposit-hal-preprod.xml: XML 1.0 document, ASCII text # actual request to update the deposit metadata $ curl -XPUT -u $SWH_CREDS -H "Content-Type: application/atom+xml;type=entry" -H "X_CHECK_SWHID: $SWHID" --data-binary @deposit-hal-preprod.xml "https://deposit.staging.swh.network/1/swh/$DEPOSIT_ID/metadata/ # server side (it replied "fine") ``` Oct 09 13:12:23 deposit python3[916]: 2020-10-09 13:12:23 [916] gunicorn.access:INFO 127.0.0.1 - swh [09/Oct/2020:13:12:23 +0000] "PUT /1/swh/605/metadata/ HTTP/1.1" 204 0 "-" "curl/7.64.0" ```