Skip to Content
Anuma SDKClientInternalFunctionspostApiV1ConnectorsByProviderDisconnect

postApiV1ConnectorsByProviderDisconnect

postApiV1ConnectorsByProviderDisconnect<ThrowOnError>(options: Options<PostApiV1ConnectorsByProviderDisconnectData, ThrowOnError>): RequestResult<PostApiV1ConnectorsByProviderDisconnectResponses, PostApiV1ConnectorsByProviderDisconnectErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:849 

Disconnect a connector

Marks the local credential as user-revoked and purges the in-process token cache. For most providers it also revokes the upstream refresh token (best-effort); shared-consent providers (Google’s gmail/gdrive/gcalendar share one consent screen) revoke locally only, since an upstream /revoke would cascade and disconnect the sibling connectors. Returns 200 even if any upstream revoke fails — the local revoke is the source of truth.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1ConnectorsByProviderDisconnectData, ThrowOnError>

Returns

RequestResult<PostApiV1ConnectorsByProviderDisconnectResponses, PostApiV1ConnectorsByProviderDisconnectErrors, ThrowOnError>

Last updated on