Disconnect every connected account for this OAuth2 provider
POST
/api/v1/auth/oauth2/disconnect/{provider}
const url = 'http://localhost:11044/api/v1/auth/oauth2/disconnect/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 \ --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; every connected account under it and its stored tokens are removed. An unknown key is not refused and answers removed: 0
Responses
Section titled “Responses”OK
Media type*/*
Every account of one OAuth2 provider was disconnected
object
provider
required
The provider disconnected
string
removed
required
How many registered accounts were removed. The provider’s default slot is cleared as well and is not counted
integer format: int32
status
required
Always “disconnected”
string

