---
title: "Swap Credentials For Connector"
method: PUT
path: "/manage/admin/credential/swap"
tags: ["public"]
---

# Swap Credentials For Connector

`PUT /manage/admin/credential/swap`

## Request body

- CredentialSwapRequest
  - `new_credential_id` integer, required
  - `connector_id` integer, required
  - `access_type` 'public' | 'private' | 'sync', required

## Response `200`

Successful Response

- StatusResponse
  - `success` boolean, required
  - `message` string, nullable
  - `data` unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-06** `2d941ea53eb3` — 2 info
  - api tag `public` added
  - the response property `success` became required for the status `200`
- **2025-08-21** `9321c45d93b5` — 1 breaking, 1 info
  - the response property `success` became optional for the status `200`
  - api tag `public` removed

[Change history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/manage/admin/credential/swap/put.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) · [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onyx-dot-app/onyx-api/revisions/2980a9073ffe/schema)
