---
title: "Patch Session"
method: PATCH
path: "/v1/sessions/{session_id}"
tags: ["game sessions", "developer-api", "product-api"]
---

# Patch Session

`PATCH /v1/sessions/{session_id}`

## Request

- Base URL: `https://api.myarchivist.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myarchivist.ai/v1/sessions/{session_id}`
- Auth: HTTP bearer

## Path parameters

- `session_id` string, required

## Headers

- `x-api-key` string, nullable

## Request body

- GameSessionPatch: Schema for PATCH updates to a game session (limited fields)
  - `title` string, nullable
  - `session_date` string, date-time, nullable
  - `summary` string, nullable
  - `notes` string, nullable
  - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other'
  - `public` boolean, nullable
  - `image` string, nullable

## Response `200`

Successful Response

- union
  - GameSessionRead: Schema for reading game session data
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable
    - `id` string, required
    - `title` string
    - `summary` string, nullable
    - `notes` string, nullable
    - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other'
    - `public` boolean
    - `campaign_id` string, required
    - `image` string, nullable
    - `index` integer, nullable
    - `session_date` string, date-time, required
    - `pbp_start_msg_url` string, nullable
    - `pbp_end_msg_url` string, nullable
  - GameSessionSummaryProduct
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable
    - `id` string, required
    - `title` string, required
    - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other', required
    - `session_date` string, date-time, required
    - `campaign_id` string, required
    - `public` boolean, required
    - `summary` string, nullable
    - `image` string, nullable
    - `index` integer, nullable
    - `notes` string, nullable
    - `pbp_start_msg_url` string, nullable
    - `pbp_end_msg_url` string, nullable
    - `pending` boolean
    - `ai_session_review` AiSessionReviewSummary
      - `stage` string, required
      - `review_started_at` string, date-time, nullable
      - `save_started_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myarchivist/apis/archivist-public-api.md) · [All operations](https://skmtc.dev/myarchivist/apis/archivist-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myarchivist/apis/archivist-public-api/revisions/3ea6ca7efc56?raw)
