---
title: "Batch update session service settings"
method: PATCH
path: "/api/v1/sessions/service"
tags: ["Sessions"]
---

# Batch update session service settings

`PATCH /api/v1/sessions/service`

**Required scope:** `data`

## Request body

- BatchSessionServiceRequest
  - `umo` string
  - `umos` string[]
  - `scope` 'all' | 'group' | 'private' | 'custom_group'
  - `group_id` string
  - `rule_key` string
  - `session_enabled` boolean
  - `llm_enabled` boolean
  - `tts_enabled` boolean

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

## Changes

- **2026-08-02** `4463c5ffdb9c` — 1 info
  - endpoint added
- **2026-06-16** `9832b5ec01b5` — 1 breaking
  - api path removed without deprecation
- **2026-06-14** `6b73b947caab` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/sessions/service/patch.md)

---

[API](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/9f8da1b16ca0/schema)
