---
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

---

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