PUT
/
pinning
/
hashMetadata
curl --request PUT \
  --url https://api.pinata.cloud/pinning/hashMetadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ipfsPinHash": "<string>",
  "name": "<string>",
  "keyvalues": {}
}'
"OK"

Authorizations

Authorization
string
header
required

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

Body

application/json
ipfsPinHash
string

CID for the file to be updated

name
string

Updated name for file

keyvalues
object

Response

200 - text/plain
OK

The response is of type string.