Update a custom connector
Updates a custom connector by its identifier. Send display_name, proxy_url and auth_patterns on every update. auth_patterns and metadata replace the stored values, so send everything you want to keep, starting from the create response. description and icon_src keep their stored values when left out. The pattern type and is_mcp can't change.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
identifierstringrequiredidentifier, from the create response.Body
auth_patternsarray of objectrequiredShow 9 child attributes
display_namestringrequiredtypestring (enum)requiredNO_AUTH only for a public MCP server, with is_mcp set and no fields. The type of an existing pattern can't change.OAUTHBEARERAPI_KEYBASICNO_AUTHaccount_fieldsarray of objectOAUTH pattern, such as a value proxy_url needs. Same fields as fields.auth_field_mutationsobjectprefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.auth_header_key_overridestringAuthorization, such as X-API-Key.descriptionstringfieldsarray of objectBEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH.Show 6 child attributes
field_namestringrequiredtoken for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}.hintstringinput_typestring (enum)password for secrets, so the input is masked.textpasswordselectlabelstringoptionsarray of objectselect input, each with value, display_name, description and default.requiredbooleanis_mcpbooleantrue when proxy_url is an MCP server. Set it on every pattern; it can't change later.oauth_configobjectOAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.Show 5 child attributes
authorize_uristringavailable_scopesarray of objectscope, display_name, description and required.pkce_enabledbooleantoken_uristringuser_info_uristringdisplay_namestringrequiredproxy_urlstringrequireddescriptionstringicon_srcstringmetadataobjectproxy_enabledbooleanscalekit_client.actions.providers.update_custom_provider
Update an existing custom provider. Send display_name, proxy_url and auth_patterns on every update. auth_patterns and metadata replace the stored values, so send everything you want to keep. description and icon_src keep their stored values when left as None.
scalekit_client.actions.providers.update_custom_provider( request: UpdateCustomProviderRequest,) -> UpdateCustomProviderResponseParameters
requestUpdateCustomProviderRequestrequiredidentifier of the connector to update, with display_name, proxy_url and auth_patterns, and optionally description, icon_src and metadata.Returns UpdateCustomProviderResponse: The provider's full state after the update.
From scalekit-sdk-python 2.19.1.
scalekit.actions.providers.updateCustomProvider
Updates a custom connector. Treat this as a PUT: read the current connector with listProviders first, then send back every field you want to keep alongside the ones you are changing. provider.authPatterns and provider.proxyEnabled from that response can be passed here as-is. What the server does with each field: displayName, proxyUrl and authPatterns are required on every update. Omitting authPatterns fails with [invalid_argument] Validation error, and it replaces the whole list rather than merging into it. The pattern's type and is_mcp cannot be changed. metadata replaces the stored map, so leaving it out clears it. proxyEnabled is always applied. It defaults to true here, so pass the current value to keep a connector's proxying switched off. description and iconSrc keep their stored values when left out.
scalekit.actions.providers.updateCustomProvider( params: { identifier: string; displayName: string; proxyUrl: string; authPatterns: AuthPattern[]; proxyEnabled?: boolean; description?: string; iconSrc?: string; metadata?: Record<string, string>; },): Promise<UpdateProviderResponse>Parameters
identifierstringrequiredprovider.identifier on a create or list response.displayNamestringrequiredproxyUrlstringrequiredauthPatternsAuthPattern[]requiredtype, display_name and the fields users fill in. Send it on every update: it replaces the stored list.proxyEnabledbooleandescriptionstringiconSrcstringmetadataRecord<string, string>Returns Promise<UpdateProviderResponse>.
From @scalekit-sdk/node 2.18.0.
Response 200
providerobjectShow 14 child attributes
auth_patternsarray of objectShow 9 child attributes
account_fieldsarray of objectOAUTH pattern, such as a value proxy_url needs. Same fields as fields.auth_field_mutationsobjectprefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.auth_header_key_overridestringAuthorization, such as X-API-Key.descriptionstringdisplay_namestringfieldsarray of objectBEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH.Show 6 child attributes
field_namestringtoken for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}.hintstringinput_typestring (enum)password for secrets, so the input is masked.textpasswordselectlabelstringoptionsarray of objectselect input, each with value, display_name, description and default.requiredbooleanis_mcpbooleantrue when proxy_url is an MCP server. Set it on every pattern; it can't change later.oauth_configobjectOAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.Show 5 child attributes
authorize_uristringavailable_scopesarray of objectscope, display_name, description and required.pkce_enabledbooleantoken_uristringuser_info_uristringtypestring (enum)NO_AUTH only for a public MCP server, with is_mcp set and no fields. The type of an existing pattern can't change.OAUTHBEARERAPI_KEYBASICNO_AUTHcategoriesarray of stringcoming_soonbooleandescriptionstringdisplay_namestringdisplay_priorityintegericon_srcstringidstringidentifierstringdisplay_name.is_custombooleanis_custom_mcpbooleanmetadataobjectproxy_enabledbooleanproxy_url.proxy_urlstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - the update payload failed validation404Not Found - no custom provider exists with the given identifier