Skip to main content
POST
Pin by CID

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cid
string
required

CID of the file you want to pin

name
string

Add a custom name for the file

group_id
string

ID of the group you would like to upload

keyvalues
object

Add additional key value metadata to files upon upload

host_nodes
string[]

An optional array of host node IDs, use ipfs id in Kubo to get these

Response

200 - application/json

OK

data
object