Przejdź do głównej zawartości

Unieważnij sesję użytkownika

DELETE
/api/v3/Users/sessions/{sessionVersion}
curl --request DELETE \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Usuwa wskazaną sesję, wymuszając ponowne logowanie na danym urządzeniu. Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR or SUPERADMIN. The session matching the given session version is removed, which forces a re-login on that device.

sessionVersion
wymagane
string format: uuid

The session version value to remove

No Content

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error