updateConnection

abstract suspend fun updateConnection(connectionId: String, request: IB2BSCIMUpdateConnectionParameters): B2BSCIMUpdateConnectionResponse

Updates settings on the specified SCIM connection. Calls the PUT /sdk/v1/b2b/scim/{connection_id} endpoint. Requires an active session.

Kotlin:

StytchB2B.scim.updateConnection(
connectionId = "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
request = B2BSCIMUpdateConnectionParameters(
displayName = "Updated SCIM Connection",
),
)

iOS:

let params = B2BSCIMUpdateConnectionParameters(displayName: "Updated SCIM Connection")
let response = try await StytchB2B.scim.updateConnection(
connectionId: "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
request: params
)

React Native:

StytchB2B.scim.updateConnection(
"scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
{ displayName: "Updated SCIM Connection" },
)

Return

B2BSCIMUpdateConnectionResponse containing the updated connection.

Parameters

connectionId

The ID of the SCIM connection to update.

request
  • IB2BSCIMUpdateConnectionParameters

  • identityProvider? — The identity provider type.

  • displayName? — Human-readable label for the connection.

  • scimGroupImplicitRoleAssignments? — Roles assigned based on SCIM group membership.

Throws

StytchError

if the connection is not found or the request fails.

if the coroutine is cancelled.