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

# Connect Server

> Link a game server to a session

Connect a Roblox game server to an attendance session (Premium/Enterprise only).

## Request

```bash theme={null}
curl -X POST https://api.series.hr/attendance/connect-server/session_xyz789 \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ServerId": "server_12345",
    "PlaceId": "9876543210",
    "GameId": "game_98765",
    "JobId": "job_54321"
  }'
```

## Parameters

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

<ParamField body="ServerId" type="string" required>
  Roblox game server ID (required)
</ParamField>

<ParamField body="PlaceId" type="string">
  Roblox place ID (optional)
</ParamField>

<ParamField body="GameId" type="string">
  Roblox game ID (optional)
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "sessionId": "session_xyz789",
      "ServerId": "server_12345",
      "connectedAt": "2024-01-15T10:30:00Z"
    }
  }
  ```
</ResponseField>


## OpenAPI

````yaml POST /attendance/connect-server/{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:
  /attendance/connect-server/{sessionId}:
    post:
      tags:
        - Attendance
      summary: Connect Server
      description: >-
        Link a game server to a session for attendance tracking. Requires
        Premium or Enterprise subscription.
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: The session ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ServerId
              properties:
                ServerId:
                  type: string
                  description: The Roblox server job ID (required)
                PlaceId:
                  type: string
                  description: The Roblox place ID (optional)
                GameId:
                  type: string
                  description: The Roblox game ID (optional)
      responses:
        '200':
          description: Server connected
        '403':
          description: Premium/Enterprise subscription required
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.

````