Change name, default role, status or `enforced` (owner)
PATCH
/v1/orgs/{org}/sso
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/sso';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","defaultRole":"admin","status":"active","enforced":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/sso \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "defaultRole": "admin", "status": "active", "enforced": true }'enforced: true requires a verified domain and that someone has already signed in through this connection (409 sso_enforce_blocked).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
defaultRole
string
status
string
enforced
boolean
Responses
Section titled “Responses”Connection
Media typeapplication/json
object
id
required
string
protocol
required
string
name
required
string
status
required
string
defaultRole
required
Role given to someone provisioned on first sign-in (never owner). member sees all brands as a viewer.
string
enforced
required
Members on the verified domains can only sign in through SSO.
boolean
lastLoginAt
required
string
config
required
Public part of the configuration (never the client secret).
object
key
additional properties
hasClientSecret
required
boolean
domains
required
Array<object>
object
domain
required
string
verified
required
boolean
verifiedAt
required
string
verification
required
DNS record that proves the domain belongs to the organization.
object
recordType
required
string
recordName
required
string
recordValue
required
string
serviceProvider
required
What to register in the IdP: redirectUri (OIDC) or entityId and acsUrl (SAML).
object
entityId
required
string
acsUrl
required
string
redirectUri
required
string
metadataUrl
required
string
Example
{ "protocol": "oidc", "status": "active", "defaultRole": "admin", "domains": [ { "verification": { "recordType": "TXT" } } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}