/api/v0/config

Get and set IPFS config values.

Arguments

  • arg [string]: The key of the config entry (e.g. "Addresses.API"). Required: yes.

  • arg [string]: The value to set the config entry to. Required: no.

  • bool [bool]: Set a boolean value. Required: no.

  • json [bool]: Parse stringified JSON. Required: no.

Response

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

{
  "Key": "<string>",
  "Value": "<object>"
}

cURL Example

curl -X POST "http://127.0.0.1:5001/api/v0/config?arg=<key>&arg=<value>&bool=<value>&json=<value>"


Last updated