Revoke every API token of one person on a verified domain
DELETE
/v1/companies/{id}/sso/members/{userId}/tokens
const url = 'https://beta-api.plune.ai/v1/companies/example/sso/members/example/tokens';const options = {method: 'DELETE', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/companies/example/sso/members/example/tokens \ --cookie plune_session=<plune_session>Owner and managers (#1610). 404 for a person whose address is not on a verified domain of the company; revoked: 0 for one who holds no live token. One row of the company’s log. 20 a minute a person.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
userId
required
string
Responses
Section titled “ Responses ”How many were revoked
Media type application/json
object
affectedProjects
required
The distinct projects the tokens write to.
Array<object>
object
id
required
string
name
required
string
unboundTokens
required
Tokens that belong to no project of their own: they follow their owner’s default project.
integer
revoked
required
integer
Example generated
{ "affectedProjects": [ { "id": "example", "name": "example" } ], "unboundTokens": 1, "revoked": 1}No / invalid session
No such company, or the caller is not its owner or a manager, or the person is not on the domain
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over