Change the CID version or hash function of the root node of a given path.
arg [string]: Path to change. Default: '/'. Required: no.
arg
cid-version [int]: Cid version to use. (experimental). Required: no.
cid-version
hash [string]: Hash function to use. Will set Cid version to 1 if used. (experimental). Required: no.
hash
On success, the call to this endpoint will return with 200 and the following body:
This endpoint returns a `text/plain` response body.
curl -X POST "http://127.0.0.1:5001/api/v0/files/chcid?arg=<path>&cid-version=<value>&hash=<value>"
Last updated 1 year ago