Skip to main content
PUT
Update a custom API connector

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Update custom API connector request

access_token
string

Replacement credential. Omitted or blank values keep the stored credential and leave refresh_token untouched; they are rejected with 422 when base_api_url or test_url moves to an origin the stored credential was not entered for. Stored encrypted and never returned.

Example:

"sk-live-..."

auth_custom_header_name
string

Header name for auth_method custom_header. Reserved headers are rejected.

Example:

"X-Api-Key"

auth_header_prefix
string

Prefix for the Authorization header value when auth_method is header.

Example:

"Bearer"

auth_method
enum<string>

Where the credential is placed on provider requests. See the create request for each method.

Available options:
header,
url_path,
query_param,
custom_header
Example:

"header"

auth_query_param_name
string

Query parameter name for auth_method query_param.

Example:

"api_key"

auth_url_path_template
string

Path template for auth_method url_path. {token} is replaced with the credential.

Example:

"/bot{token}"

base_api_url
string

Base URL of the provider API.

Example:

"https://api.acme.example"

description
string

Free-form description shown in the dashboard.

Example:

"Acme production account"

name
string

New connector name. The name is the connector's identity within the organization, so it must not collide with another custom API connector.

Example:

"acme-api"

refresh_token
string

Replacement refresh token, applied only together with a non-empty access_token; sent on its own it changes nothing. Omit it to keep the stored refresh token, except when the update moves the connector to a new origin: then the stored refresh token is dropped. An empty string sent with a new access_token stores an empty refresh token.

Example:

"rt-..."

test_url
string

URL the connector test fetches. A path relative to base_api_url (such as /me) for auth_method url_path; an absolute URL for every other method.

Example:

"https://api.acme.example/me"

Response

Success

Connector response

connection
object
required

Sanitized connector. Secrets and encrypted token fields are never returned.

Example: