Disconnect one account by id from this OAuth2 provider
POST
/api/v1/auth/oauth2/disconnect/{provider}/{accountId}
const url = 'http://localhost:11044/api/v1/auth/oauth2/disconnect/example/example';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/auth/oauth2/disconnect/example/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
The provider key, as name in GET /auth/oauth2/providers
accountId
required
string
The account to disconnect, as accountId in that provider’s accounts (the identity the provider’s introspection resolved, or default for a single-account provider); an id with nothing connected is not refused and still answers disconnected
Responses
Section titled “Responses”OK
Media type*/*
One account of an OAuth2 provider was disconnected
object
accountId
required
The account disconnected, as the path named it
string
provider
required
The provider the account belonged to
string
status
required
Always “disconnected”
string

