/api/v0/files/chcid

Change the CID version or hash function of the root node of a given path.

Arguments

  • arg [string]: Path to change. Default: '/'. Required: no.

  • cid-version [int]: Cid version to use. (experimental). Required: no.

  • hash [string]: Hash function to use. Will set Cid version to 1 if used. (experimental). Required: no.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl -X POST "http://127.0.0.1:5001/api/v0/files/chcid?arg=<path>&cid-version=<value>&hash=<value>"

Last updated