---
title: "Add Swap"
method: PUT
path: "/files/{network}/swap/{cid}"
tags: ["Swaps"]
---

# Add Swap

`PUT /files/{network}/swap/{cid}`

`org:files:write`

## Path parameters

- `network` 'public' | 'private', required
- `cid` string, required

## Request body

- object
  - `swapCid` string, required — The CID you want to redirect to

## Response `200`

OK

- object
  - `data` object
    - `mapped_cid` string — The current CID that is being pointed to from the original
    - `created_at` string — The date this CID was updated

---

[API](https://skmtc.net/pinata/apis/pinata-v3-api.md) · [All operations](https://skmtc.net/pinata/apis/pinata-v3-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinata/pinata-v3-api/revisions/734684efd9c4/schema)
