Przejdź do głównej zawartości

Wyloguj użytkownika ze wszystkich urządzeń

DELETE
/api/v3/Users/{userId}/sessions
curl --request DELETE \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/1/sessions \
--header 'Authorization: Bearer <token>'

Unieważnia wszystkie aktywne sesje użytkownika. Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR or SUPERADMIN.

userId
wymagane
integer format: int64

The id of the user whose sessions should be removed

No Content

Server Error