Skip to content

Disconnect one account by id from this OAuth2 provider

POST
/api/v1/auth/oauth2/disconnect/{provider}/{accountId}
curl --request POST \
--url http://localhost:11044/api/v1/auth/oauth2/disconnect/example/example \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
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

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