dag_put
/api/v0/dag/put
REQUEST
curl "https://ipfs.krypc.io:5001/api/v0/dag/put?store-codec=dag-cbor&input-codec=dag-json&pin=<value>&hash=sha2-256" \
-X POST \
-u "<API_KEY>:<API_KEY_SECRET>" \
-H "Content-Type: multipart/form-data" \
-F file=@"<file>"RESPONSEβ
{
"Cid": {
"/": "<cid-string>"
}
}Last updated
Was this helpful?