Was this helpful?
/buckets/metadata
curl -L \ --url 'https://beta.data.banyan.computer/api/v1/buckets/metadata' \ --header 'Authorization: Bearer JWT'
[ { "id": "text", "root_cid": "text", "metadata_cid": "text", "data_size": 1, "state": "active", "created_at": 1, "updated_at": 1, "snapshot_id": "text" } ]
JSON payload that precedes the metadata CAR file upload
The CAR file containing the metadata to be uploaded
curl -L \ --request POST \ --url 'https://beta.data.banyan.computer/api/v1/buckets/metadata' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: multipart/form-data' \ --form 'request-data=text' \ --form 'car-upload=text'
{ "id": "text", "state": "active", "storage_host": "text", "storage_authorization": "text" }
/buckets/metadata/{metadata_id}
The ID of the metadata to retrieve
curl -L \ --url 'https://beta.data.banyan.computer/api/v1/buckets/metadata/{metadata_id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text", "root_cid": "text", "metadata_cid": "text", "data_size": 1, "state": "active", "created_at": 1, "updated_at": 1, "snapshot_id": "text" }
The ID of the metadata to delete
curl -L \ --request DELETE \ --url 'https://beta.data.banyan.computer/api/v1/buckets/metadata/{metadata_id}' \ --header 'Authorization: Bearer JWT'
No body