Skip to content
APIProductDomains and accessSSO Connection

SSO Connection routes: update

The SSO Connection Verbs update as api.sb routes, with inputs, result, refusals and an example.

Reference for SSO Connection, one group of SSO Connection routes.

SSOConnection.update

Changes the given properties of a SSO Connection. Verb page.

Text
PATCH /{namespace}/sso-connections/{id}

Path: id. Body, as JSON: the other inputs. Emits SSOConnection.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the SSO Connection.
protocolstringHow sign-in is asserted: saml or oidc.
certificateExpiresAtdatetimeWhen the signing certificate expires; the Customer’s admin hears 30 days before.
testedAtdatetimeWhen the Customer’s admin last completed a test sign-in.

Returns

OutputTypeRequiredDescription
ssoConnectionSSO ConnectionrequiredThe SSO Connection.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
curl -X PATCH https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"protocol":"saml"}'
JSON
{
  "api": "https://api.sb/leaseline.app",
  "ssoConnection": {
    "$id": "https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7",
    "$type": "SSOConnection",
    "protocol": "saml",
    "state": "draft"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "SSOConnection.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}