Skip to main content
PUT
/
manage
/
admin
/
credential
/
swap
Swap Credentials For Connector
curl --request PUT \
  --url https://cloud.onyx.app/api/manage/admin/credential/swap \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "new_credential_id": 123,
  "connector_id": 123,
  "access_type": "public"
}
'
{
  "success": true,
  "message": "<string>",
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

Authorization header with Bearer token

Body

application/json
new_credential_id
integer
required
connector_id
integer
required
access_type
enum<string>
required
Available options:
public,
private,
sync

Response

Successful Response

success
boolean
required
message
string | null
data
unknown