Function ory_kratos_client::apis::v0alpha1_api::submit_self_service_settings_flow [−][src]
pub async fn submit_self_service_settings_flow(
configuration: &Configuration,
flow: &str,
x_session_token: Option<&str>,
submit_self_service_settings_flow_body: Option<SubmitSelfServiceSettingsFlowBody>
) -> Result<SuccessfulSelfServiceSettingsWithoutBrowser, Error<SubmitSelfServiceSettingsFlowError>>
Expand description
Use this endpoint to complete a settings flow by sending an identity’s updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect application/json
to be sent in the body and respond with HTTP 200 and an application/json body with the session token on success; HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. HTTP 401 when the endpoint is called without a valid session token. HTTP 403 when selfservice.flows.settings.privileged_session_max_age
was reached. Implies that the user needs to re-authenticate. Browser flows without HTTP Header Accept
or with Accept: text/_*
respond with a HTTP 302 redirect to the post/after settings URL or the return_to
value if it was set and if the flow succeeded; a HTTP 302 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 302 redirect to the login endpoint when selfservice.flows.settings.privileged_session_max_age
was reached. Browser flows with HTTP Header Accept: application/json
respond with HTTP 200 and a application/json body with the signed in identity and a Set-Cookie
header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 403 when the page is accessed without a session cookie. HTTP 400 on form validation errors. More information can be found at Ory Kratos User Settings & Profile Management Documentation.