Update session

Updates a session and returns session information.

PUT
https://identity.krystal.io/api/v1/sessions/{session}

If successful, this endpoint will return a 200 OK status.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

session Required

SessionLookup None

properties Required

SessionProperties None

Potential Errors

The following errors may occur during this request.

Details HTTP status

session_not_found

The session ID provided was not found

404 Not Found

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    session: SessionValidity {
        active: Boolean
        trusted: Boolean?
        reasons_to_distrust: [ String? ]
        trusted_ip_address: Boolean?
        two_factor_auth: Boolean?
        session_created_at: Unix Timestamp?
        logged_in_at: Unix Timestamp?
    }
}