PUT
/
ipfs
/
swap
/
{cid}
curl --request PUT \
  --url https://api.pinata.cloud/v3/ipfs/swap/{cid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "swapCid": "QmXog19G7QvqHQUMH4R6aCaq8J9qfKAU9ethr51PUjtKjM"
}'
{
  "data": {
    "mappedCid": "QmXog19G7QvqHQUMH4R6aCaq8J9qfKAU9ethr51PUjtKjM",
    "createdAt": "2024-08-18T19:36:29.442559Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

cid
string
required

The target original CID

Body

application/json
swapCid
string
required

The CID you want to redirect to

Response

200 - application/json
OK
data
object