cURL
curl --request PUT \ --url https://api.pinata.cloud/v3/files/{network}/swap/{cid} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "swap_cid": "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
OK
The response is of type object.
object