Data

Announce the dataset to the DHT and serve it to peers, or stop doing both. Already published DHT records are not withdrawn, they stop being republished and expire.

post/data/{cid}/advertise

Path parameters

cidstring required

Content Identifier as specified at https://github.com/multiformats/cid

Example:QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N

Dataset to be announced or hidden.

Query parameters

advertiseboolean required

When false, the dataset is neither announced to the DHT nor served to peers.

Response

Advertise state of the dataset

cidstring required

Content Identifier as specified at https://github.com/multiformats/cid

advertiseboolean required

Whether the dataset is announced to the DHT and served to peers

Example response

{
  "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N"
}

Changes

Changed in 1 of the 53 revisions of this API.1