Revoke a session

async AsyncCogniteClient.iam.sessions.revoke(
id: int | Sequence[int],
) Session | SessionList

Revoke access to a session.

Revocation of a session may in some cases take up to 1 hour to take effect.

Parameters:

id (int | Sequence[int]) – Id or list of session ids

Returns:

List of revoked sessions. If the user does not have the sessionsAcl:LIST capability, then only the session IDs will be present in the response.

Return type:

Session | SessionList