rotateStart

abstract suspend fun rotateStart(connectionId: String): SCIMRotateStartResponse

Starts the SCIM bearer token rotation process. This method wraps the {@link https://stytch.com/docs/b2b/api/scim-rotate-token-start start-rotation} endpoint. The caller must have permission to modify SCIM via the project's RBAC policy & their role assignments.

Return

SCIMRotateStartResponse

Parameters

connectionId

the ID of the connection to start the bearer token rotation process


abstract fun rotateStart(connectionId: String, callback: (SCIMRotateStartResponse) -> Unit)

Starts the SCIM bearer token rotation process. This method wraps the {@link https://stytch.com/docs/b2b/api/scim-rotate-token-start start-rotation} endpoint. The caller must have permission to modify SCIM via the project's RBAC policy & their role assignments.

Parameters

connectionId

the ID of the connection to start the bearer token rotation process

callback

a callback that receives a SCIMRotateStartResponse