---
title: "Update a connector"
method: PATCH
path: "/auth/connectors/{connector_id}"
tags: ["AuthConnector"]
---

# Update a connector

`PATCH /auth/connectors/{connector_id}`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/auth/connectors/{connector_id}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/auth/connectors/:connector_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a connector (superadmin only).

## Path parameters

- `connector_id` integer, required: ID of the connector to update.

## Query parameters

- `cookie_name` string, nullable

## Request body

- ConnectorUpdate
  - `description` string, nullable: New description for the connector.

## Response `200`

Successful Response

- Connector
  - `created_at` string, date-time: UTC timestamp when the record was created.
  - `updated_at` string, date-time: UTC timestamp when the record was last updated.
  - `creator_user_id` integer, nullable: ID of the user who created the record, if attributable.
  - `updater_user_id` integer, nullable: ID of the user who last updated the record, if any.
  - `id` integer, nullable: Primary key for the connector.
  - `oauth_client_id` integer, required: ID of the OAuth client backing this connector.
  - `name` string, required: Name of the connector.
  - `description` string, nullable: Optional description of the connector.
  - `scopes` string[]: OAuth scopes requested by this connector.
  - `caps` string[]: Capabilities provided by this connector.
  - `auto_attach` boolean: Whether this connector is automatically attached to new resources.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Platform operator (superadmin) privileges required.
- `404`: No connector exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
