dag_import
/api/v0/dag/import
REQUEST
curl "https://ipfs.krypc.io:5001/api/v0/dag/import?pin-roots=false&allow-big-block=false" \
-X POST \
-u "PROJECT_ID:PROJECT_SECRET" \
-H "Content-Type: multipart/form-data" \
-F file=@"<file>"RESPONSE
{
"Root": {
"Cid": {
"/": "<cid-string>"
},
"PinErrorMsg": "<string>"
},
"Stats": {
"BlockBytesCount": "<uint64>",
"BlockCount": "<uint64>"
}
}Last updated
Was this helpful?