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

# Cancel all ASSIGNED sessions for the operator workspace

> Bulk-cancels every session where this workspace is the operator and the state is ASSIGNED. Useful when an operator's phone runs out of battery mid-stream or they need to release the workspace without waiting for the per-session expiry. Returns the list of cancelled session ids. No-op when no ASSIGNED sessions are owned by the caller.



## OpenAPI

````yaml /openapi.json post /api/v1/sessions/cancel-all-assignments
openapi: 3.0.0
info:
  title: Luxxon API
  description: Programmable vision — on-demand live video feeds
  version: 0.1.0
  contact: {}
servers:
  - url: https://api.luxxon.dev/api/v1
security: []
tags:
  - name: Authentication
    description: SIWE wallet sign-in. Used by the dashboard; API-key callers skip this.
  - name: Me
    description: Identity self-introspection — wallet or API key.
  - name: Workspaces
    description: Tenant root. Coverage area, availability, members.
  - name: API keys
    description: Per-workspace scoped credentials (lxxn_*).
  - name: Pricing
    description: Live rate + optional pre-quoted rate lock.
  - name: Sessions
    description: 'Visual session lifecycle: request → dispatch → authorize → start → end.'
  - name: Wallet
    description: On-chain wallet state and event log for a workspace.
  - name: Settlements
    description: On-chain settlement view per session.
  - name: Health
    description: Proof-of-life. No auth.
  - name: Webhooks
    description: Inbound video events from Cloudflare Stream. Internal.
paths:
  /api/v1/sessions/cancel-all-assignments:
    post:
      tags:
        - Sessions
      summary: Cancel all ASSIGNED sessions for the operator workspace
      description: >-
        Bulk-cancels every session where this workspace is the operator and the
        state is ASSIGNED. Useful when an operator's phone runs out of battery
        mid-stream or they need to release the workspace without waiting for the
        per-session expiry. Returns the list of cancelled session ids. No-op
        when no ASSIGNED sessions are owned by the caller.
      operationId: LxSessionsController_cancelAllAssignments
      parameters:
        - name: x-lx-consistency-token
          required: false
          in: header
          schema:
            type: string
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/LxSuccessResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/LxSessionCancelAllResponseDto'
        '401':
          description: NOT_AUTHENTICATED
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LxErrorResponseDto'
              examples:
                NOT_AUTHENTICATED:
                  summary: NOT_AUTHENTICATED — Session expired or missing
                  value:
                    statusCode: 401
                    code: NOT_AUTHENTICATED
                    message: Session expired or missing
                    detail: not_authenticated:example
                    timestamp: '2026-05-13T12:00:00.000Z'
        '403':
          description: NOT_AUTHORIZED, NOT_OPERATOR
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LxErrorResponseDto'
              examples:
                NOT_AUTHORIZED:
                  summary: NOT_AUTHORIZED — Not authorized for this operation
                  value:
                    statusCode: 403
                    code: NOT_AUTHORIZED
                    message: Not authorized for this operation
                    detail: not_authorized:example
                    timestamp: '2026-05-13T12:00:00.000Z'
                NOT_OPERATOR:
                  summary: NOT_OPERATOR — Caller is not an operator
                  value:
                    statusCode: 403
                    code: NOT_OPERATOR
                    message: Caller is not an operator
                    detail: not_operator:example
                    timestamp: '2026-05-13T12:00:00.000Z'
        '503':
          description: AUTHZ_ERROR
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LxErrorResponseDto'
              examples:
                AUTHZ_ERROR:
                  summary: AUTHZ_ERROR — Authorization service unavailable
                  value:
                    statusCode: 503
                    code: AUTHZ_ERROR
                    message: Authorization service unavailable
                    detail: authz_error:example
                    timestamp: '2026-05-13T12:00:00.000Z'
      security:
        - access-token: []
components:
  schemas:
    LxSuccessResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 200
        message:
          type: string
          example: Request successful
        data:
          type: object
          description: Endpoint-specific payload. See the per-endpoint schema.
        timestamp:
          type: string
          example: '2026-05-13T12:00:00.000Z'
      required:
        - statusCode
        - message
        - data
        - timestamp
    LxSessionCancelAllResponseDto:
      type: object
      properties:
        count:
          type: number
          example: 3
          description: Number of sessions cancelled.
        cancelled:
          example:
            - b1e2f3a4-5b6c-7d8e-9f0a-1b2c3d4e5f6a
            - c2e3f4b5-6c7d-8e9f-0a1b-2c3d4e5f6a7b
          description: Cancelled session ids, in createdAt-ascending order (oldest first).
          type: array
          items:
            type: string
      required:
        - count
        - cancelled
    LxErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        code:
          type: string
          example: INVALID_INPUT
          description: Machine-readable error code — see ErrorCodes.
        message:
          type: string
          example: Invalid request payload
        detail:
          type: string
          example: session:workspaceMismatch
          description: Short, safe-to-expose label scoping the failure site.
        timestamp:
          type: string
          example: '2026-05-13T12:00:00.000Z'
      required:
        - statusCode
        - code
        - message
        - timestamp
  securitySchemes:
    access-token:
      scheme: bearer
      bearerFormat: JWT or lxxn_*
      type: http

````