Dev's NoxDev's Nox
Users

Delete a session of a user

Delete a session by its ID, for the given user. The target is a single user — a group that would hold several members is refused (a multi-edit is not allowed). If the session is the current one, the client will be logged out.

DELETE
/api/users/{id}/sessions/{sessionId}

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Path Parameters

id*string
sessionId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://loading/api/users/string/sessions/string"
{
  "data": {
    "success": true,
    "logout": false
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}