---
title: "Create jobs to terminate users session"
method: POST
path: "/users/terminate_sessions"
tags: ["Session termination"]
---

# Create jobs to terminate users session

`POST /users/terminate_sessions`

Validates the roles and permissions of the user,
and creates asynchronous jobs
to terminate the user's sessions.
Returns the status for the POST request.

## Request body

- object
  - `user_ids` string[], required — A list of user IDs.
  - `user_logins` string[], required — A list of user logins.

## Response `202`

Returns a message about the request status.

- SessionTerminationMessage — A message informing about the termination job status.
  - `message` string — The unique identifier for the termination job status.

## Other responses

- `400` — Returns an error if some of the parameters are not valid. * `Users can not be NULL or EMPTY` when no value is provided. * `User id format is string` when the provided user id format is incorrect. * `Supported payload format is JSON` when the provided payload format is incorrect.
- `403` — Returns an error if there are insufficient permissions.
- `404` — Returns an error if the resource could not be found.
- `429` — Returns an error if the rate limit is exceeded.
- `500` — Returns an error if there is an internal server issue.
- `503` — Returns an error if the request timed out.
- `default` — An unexpected client error.

---

[API](https://skmtc.net/box/apis/platform-api.md) · [All operations](https://skmtc.net/box/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/box/platform-api/versions/ba8f087e1a4d/schema)
