---
title: "Update Session Policy"
method: PATCH
path: "/api/session-policy/"
tags: ["Session Policy"]
---

# Update Session Policy

`PATCH /api/session-policy/`

Update session timeout policy for the currently active organization.

## Request body

- PatchedSessionTimeoutPolicyRequest
  - `max_session_age` integer — Number of minutes that a session can be active before needing to re-login
  - `max_time_between_activity` integer — Number of minutes that a session stays active without any activity

## Response `200`

- SessionTimeoutPolicy
  - `created_at` string, date-time, required
  - `max_session_age` integer — Number of minutes that a session can be active before needing to re-login
  - `max_time_between_activity` integer — Number of minutes that a session stays active without any activity
  - `updated_at` string, date-time, required

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/revisions/1d13f90af57a/schema)
