Switch a company’s single-sign-on requirement (or its single sign-on) off
POST
/v1/admin/sso/switch-off
const url = 'https://beta-api.plune.ai/v1/admin/sso/switch-off';const options = { method: 'POST', headers: { cookie: 'plune_session=<plune_session>', 'Content-Type': 'application/json' }, body: '{"companyId":"6f1c2b3a-0000-4000-8000-0000000000a5","what":"enforcement"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/admin/sso/switch-off \ --header 'Content-Type: application/json' \ --cookie plune_session=<plune_session> \ --data '{ "companyId": "6f1c2b3a-0000-4000-8000-0000000000a5", "what": "enforcement" }'The application owner’s way out for a company whose identity provider is gone (operator decision of 17.10.2026), beside the company owner’s own emergency sign-in. what: enforcement ends the requirement; all ends single sign-on too. A row of the company’s log. The owner’s session alone; anyone else is told 404. Ten a minute.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
companyId
required
string
what
required
enforcement: no longer required. all: the company’s single sign-on off as well.
string
Example
{ "companyId": "6f1c2b3a-0000-4000-8000-0000000000a5", "what": "enforcement"}Responses
Section titled “ Responses ”Done
Media type application/json
object
ok
boolean
Example generated
{ "ok": true}The body is not valid
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Not found, or no single sign-on is set up for the company
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