Skip to main content
PATCH
Change the sign-in requirement
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Turns the requirement on or off. On needs a plan with sign-in, an active connection and a verified domain (else 400), and an owner who can still sign in, exempt or linked to this organization’s provider (else 409). Off never needs a plan.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Body

application/json
required
boolean
required

Response

The requirement after the change.

canRequire
boolean
required

Both of the above: the requirement may be turned on.

exemptMemberCount
integer
required

Members who may still sign in another way.

hasActiveConnection
boolean
required
hasVerifiedDomain
boolean
required
required
boolean
required

Members must sign in through the organization's provider.