---
title: "Set session status"
method: POST
path: "/omni/session/status/set"
tags: ["Interview"]
---

# Set session status

`POST /omni/session/status/set`

Set the status of current session. Possible actions to set the status to are: Alive, Closed or Deleted. Closed status
disables all of the "/add/..." calls so they can no longer make any changes to the system. Deleted status deletes
the important data stored in the session.

## Query parameters

- `action` 'Alive' | 'Closed' | 'Deleted', required
- `id` string

## Headers

- `api-version` string, required

## Response `200`

OK

- GetStatusResponse
  - `get_id` string — Session id.
  - `get_createdAt` integer — Timestamp, when was the session created
  - `get_updatedAt` integer — Timestamp, when was the session last updated.
  - `closedAt` integer — Timestamp, when was the session last closed.
  - `frontIdAttempts` integer — Attempts to save front id.
  - `backIdAttempts` integer — Attempts to save back id.
  - `selfieAttempts` integer — Attempts to save selfie.
  - `sessionStatus` 'Alive' | 'Closed' | 'Deleted' — Session status

## Other responses

- `400` — Bad Request

---

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