cURL
curl --request PUT \ --url https://api.pinata.cloud/v3/files/{network}/swap/{cid} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "swapCid": "bafkreig4zcnmqa23zff3ye7tuef6wrlq3aimffzm22axfeh3ddmawzlzz4" } '
{ "data": { "mapped_cid": "bafkreig4zcnmqa23zff3ye7tuef6wrlq3aimffzm22axfeh3ddmawzlzz4", "created_at": "2024-09-20T17:09:39.490275Z" } }
org:files:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Target either the public or private IPFS network
public
private
The target original CID
The CID you want to redirect to
OK
Show child attributes
The current CID that is being pointed to from the original
The date this CID was updated