> ## Documentation Index
> Fetch the complete documentation index at: https://docs.series.hr/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Session

> Update an existing session

Update an existing session with new details. All fields are optional — only include the fields you want to change.

## Request

```bash theme={null}
curl -X PATCH https://api.series.hr/sessions/update/session_abc123 \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "Title": "Advanced Training Session",
    "Duration": 120,
    "CustomRoles": [
      {
        "name": "Trainer",
        "slots": 3,
        "minRank": 25,
        "permissions": {
          "ChangeSessionStatus": false,
          "PassOrFailAttendees": true,
          "ModifyAttendance": true
        }
      }
    ]
  }'
```

## Parameters

<ParamField path="sessionId" type="string" required>
  The session ID to update
</ParamField>

<ParamField body="Title" type="string">
  Updated session title
</ParamField>

<ParamField body="Description" type="string">
  Updated session description
</ParamField>

<ParamField body="Host" type="string">
  Updated host Roblox user ID
</ParamField>

<ParamField body="CoHost" type="string">
  Updated co-host Roblox user ID
</ParamField>

<ParamField body="Supervisor" type="string">
  Updated supervisor Roblox user ID
</ParamField>

<ParamField body="Scheduled" type="string">
  Updated ISO 8601 scheduled start time
</ParamField>

<ParamField body="Duration" type="integer">
  Updated session duration in minutes (must be a positive integer)
</ParamField>

<ParamField body="Claimable" type="boolean">
  Updated claimable status
</ParamField>

<ParamField body="CustomRoles" type="array">
  Updated custom role definitions **(Premium/Enterprise only)**. Replaces all existing custom roles. Send an empty array `[]` to remove all custom roles. Each role object has:

  * `name` (string, required): Role name (must be unique, cannot be "Host", "CoHost", or "Supervisor")
  * `slots` (integer, required): Number of slots (1-10)
  * `minRank` (integer, optional): Minimum rank requirement (default: 0)
  * `permissions` (object, optional): Role permissions
    * `ChangeSessionStatus` (boolean): Can start/delay/cancel/end the session
    * `PassOrFailAttendees` (boolean): Can mark attendees as passed/failed
    * `ModifyAttendance` (boolean): Can manage the attendance list
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "SessionId": "session_abc123"
    }
  }
  ```
</ResponseField>

<Warning>Setting `CustomRoles` replaces all existing custom roles and their slot assignments. Users who previously claimed slots will need to re-claim them.</Warning>


## OpenAPI

````yaml PATCH /sessions/update/{sessionId}
openapi: 3.0.0
info:
  title: Series API
  version: 1.0.0
  description: >-
    Series API — a free REST API by Sailboat Games, LLC that lets Roblox
    communities programmatically manage workspaces, staff, sessions, time-off
    and activity data.
  contact:
    name: Sailboat Games, LLC.
    email: admin@sailboatgames.com
servers:
  - url: https://api.series.hr
    description: Production API
security:
  - ApiKeyAuth: []
paths:
  /sessions/update/{sessionId}:
    patch:
      tags:
        - Sessions
      summary: Update Session
      description: Update an existing session. All fields are optional.
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: The session ID to update
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Title:
                  type: string
                  description: Updated session title
                Description:
                  type: string
                  description: Updated description
                Host:
                  type: string
                  description: Updated host user ID
                CoHost:
                  type: string
                  description: Updated co-host user ID
                Supervisor:
                  type: string
                  description: Updated supervisor user ID
                Scheduled:
                  type: string
                  format: date-time
                  description: Updated scheduled time
                Duration:
                  type: integer
                  minimum: 1
                  description: Updated duration in minutes
                Claimable:
                  type: boolean
                  description: Updated claimable status
                CustomRoles:
                  type: array
                  description: >-
                    Updated custom role definitions (Premium/Enterprise only).
                    Replaces all existing custom roles.
                  items:
                    type: object
                    required:
                      - name
                      - slots
                    properties:
                      name:
                        type: string
                        description: Role name
                      slots:
                        type: integer
                        minimum: 1
                        maximum: 10
                        description: Number of slots
                      minRank:
                        type: integer
                        minimum: 0
                        description: Minimum rank requirement
                      permissions:
                        type: object
                        properties:
                          ChangeSessionStatus:
                            type: boolean
                          PassOrFailAttendees:
                            type: boolean
                          ModifyAttendance:
                            type: boolean
      responses:
        '200':
          description: Session updated
        '400':
          description: Validation error
        '404':
          description: Session not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Pass your API key in the `apikey` header. Alternatively, the `x-api-key`
        header is also accepted.

````