Update the current experience interaction event to the given event type. This API is used to switch the interaction event between SignIn and Register. The verification records are kept, but any user already identified in this interaction is discarded, along with everything staged against that identification: the pending profile data, any MFA factor bound in this interaction, and the trusted-device opt-in. Identify the user again before submitting. A verification record answers only for the account it was made against, so it cannot identify a different user after the switch.
Responses
-
The interaction event has been successfully updated.
-
The interaction event is invalid or cannot be updated. Only
SignInandRegisterare interchangeable. If the current interaction event isForgotPassword, it cannot be updated. -
The given interaction event is not enabled in the sign-in experience settings.
curl \
--request PUT 'https://[tenant_id].logto.app/api/experience/interaction-event' \
--header "Content-Type: application/json" \
--data '{
"interactionEvent": "SignIn"
}'
{
"interactionEvent": "SignIn"
}