Skip to main content
PATCH
Change a sign-in connection
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Renames, enables or disables a connection, or refreshes its provider details. Enabling needs a plan with sign-in. Disabling is refused while sign-in through it is required.
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.

Path Parameters

id
string
required

The connection id.

Required string length: 1 - 64

Body

application/json
clientId
string
Required string length: 1 - 256
clientSecret
string
Required string length: 1 - 1024
displayName
string
Required string length: 1 - 100
enabled
boolean
issuer
string<uri>
metadataUrl
string<uri>
metadataXml
string
Required string length: 100 - 512000

Response

The connection after the change.

certExpiresAt
string | null
required

When the signing certificate in the metadata expires.

clientId
string | null
required
createdAt
string
required
displayName
string
required
hasClientSecret
boolean
required

Whether a client secret is stored. Its value is never answered.

hasMetadataXml
boolean
required
id
string
required
issuer
string | null
required
metadataUrl
string | null
required
status
enum<string>
required

pending until the first sign-in through it, then active. disabled: switched off here.

Available options:
pending,
active,
disabled
type
enum<string>
required
Available options:
saml,
oidc
updatedAt
string
required