---
title: "Swap the position of two custom columns"
method: PATCH
path: "/campaigns/call/{campaignscalllistuuid}/numbers/columns/switch"
tags: ["campaigns"]
---

# Swap the position of two custom columns

`PATCH /campaigns/call/{campaignscalllistuuid}/numbers/columns/switch`

Swaps the display order of two custom columns in the campaign's contact data. Provide `column1` and `column2` names in the request body — their positions in the `social_data` array will be exchanged. Both columns must exist and must be different. This operation is logged in the campaign's audit log (see `GET .../logs`).

**Permission:** No specific permission required. A valid API key is sufficient.

## Path parameters

- `campaignscalllistuuid` string, uuid, required

## Request body

- CampaignCalllistNumberSwitchColumn
  - `column1` CampaignCalllistNumberColumn
    - `name` string, required — column name
    - `in_social_data` boolean — in or out of field social_data
  - `column2` CampaignCalllistNumberColumn
    - `name` string, required — column name
    - `in_social_data` boolean — in or out of field social_data

## Response `200`

Successful operation

## Other responses

- `400` — Invalid request (empty column1.name, empty column2.name, same name for both columns). column1 or column2 don't exist.
- `401` — Token unauthorized
- `404` — Campaign not found
- `500` — Internal server error

---

[API](https://skmtc.net/ringover/apis/ringover-public-api.md) · [All operations](https://skmtc.net/ringover/apis/ringover-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ringover/ringover-public-api/revisions/9da73dd2f99e/schema)
