---
title: "Associate Credential To Connector"
method: PUT
path: "/manage/connector/{connector_id}/credential/{credential_id}"
tags: ["public"]
---

# Associate Credential To Connector

`PUT /manage/connector/{connector_id}/credential/{credential_id}`

NOTE(rkuo): internally discussed and the consensus is this endpoint
and create_connector_with_mock_credential should be combined.

The intent of this endpoint is to handle connectors that actually need credentials.

## Path parameters

- `connector_id` integer, required
- `credential_id` integer, required

## Request body

- ConnectorCredentialPairMetadata
  - `name` string, nullable
  - `access_type` 'public' | 'private' | 'sync', required
  - `auto_sync_options` object, nullable
  - `groups` integer[]

## Response `200`

Successful Response

- StatusResponseInt
  - `success` boolean, required
  - `message` string, nullable
  - `data` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/onyx-dot-app/apis/onyx-api.md) · [All operations](https://skmtc.net/onyx-dot-app/apis/onyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onyx-dot-app/onyx-api/versions/027af016ba5c/schema)
