Pin by CID
Pin by CID
Pin by CID
Pin by CID
org:files:write
POST
/
files
/
public
/
pin_by_cid
curl --request POST \
--url https://api.pinata.cloud/v3/files/public/pin_by_cid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cid": "<string>",
"name": "<string>",
"group_id": "<string>",
"keyvalues": {},
"host_nodes": [
"<string>"
]
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"cid": "<string>",
"keyvalues": {},
"group_id": "<string>",
"status": "<string>",
"date_queued": "<string>",
"hose_nodes": [
"<string>"
]
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.pinata.cloud/v3/files/public/pin_by_cid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cid": "<string>",
"name": "<string>",
"group_id": "<string>",
"keyvalues": {},
"host_nodes": [
"<string>"
]
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"cid": "<string>",
"keyvalues": {},
"group_id": "<string>",
"status": "<string>",
"date_queued": "<string>",
"hose_nodes": [
"<string>"
]
}
}