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

# Set lane operating mode

> Transitions a lane operating mode between `NORMAL` automated control, `PEAK` high-throughput
egress, `ALWAYS_OPEN` continuous barrier-up mode, and `DISABLED` maintenance lock.

**Required scope:** `gates:control`

> **High-Privilege Operations:** Disabled by default for standard payment/merchant API keys. Granted only to certified operators and system integrators.



## OpenAPI

````yaml /openapi/openapi.yaml post /v1/lanes/setMode
openapi: 3.1.0
info:
  title: AKE Parking International Open Platform API
  version: 1.0.0
  description: >-
    Zero-based, international-grade HTTP RPC specification for integrating
    third-party wallets,

    shopping mall loyalty apps, merchant POS systems, hotel/office property
    suites, and facility

    operations platforms with AKE Parking International facilities.


    Core design principles:

    - **Predictable HTTP RPC** (`POST /v1/<domain>/<action>`) with strict
    `camelCase` JSON payloads

    - **Partner-centric authorization** via Bearer API Keys bound to one or more
    facilities and scopes

    - **Deployment-agnostic contract** across Cloud Production, Cloud Sandbox,
    and Local Direct (LAN)

    - **International primitives**: generalized credentials (`PLATE`, `CARD`,
    `TICKET`, `QR_CODE` without
      country-specific fields), ISO 4217 integer minor units (supporting 0/2/3-decimal currencies),
      ISO 8601 timezone-aware timestamps, explicit tax breakdown, and cursor pagination
  contact:
    name: AKE Parking Developer Support
    url: https://www.akeparking.com
servers:
  - url: https://api.akeparking.com
    description: Cloud Production — Global SaaS production environment
  - url: https://sandbox-api.akeparking.com
    description: >-
      Cloud Sandbox — Isolated testing environment with simulated parks and
      devices
  - url: http://{host}:{port}
    description: Local Direct — On-premises LAN server deployment
    variables:
      host:
        default: 192.168.1.100
        description: Local parking server IP address or internal hostname
      port:
        default: '8080'
        description: Local API service port
security:
  - bearerAuth: []
tags:
  - name: Facilities & Occupancy
    description: >-
      Discover authorized facilities, inspect lane topologies and tariffs, and
      manage real-time occupancy counts.
  - name: Sessions & Vehicles
    description: >-
      Query active parked vehicles, historical sessions, correct recognized
      plates, and log manual entries.
  - name: Fees & Payments
    description: >-
      Obtain real-time parking fee quotes with tax and validation breakdowns,
      notify external payments, and process refunds.
  - name: Validations & Merchants
    description: >-
      Browse participating merchants and validation templates, grant digital
      vouchers, claim codes, revoke unused grants, and audit issuance.
  - name: Subscriptions
    description: >-
      Manage subscription plans and long-term parking subscriptions across
      period, stored-value, visit-pack, and duration-pack models.
  - name: Access Lists & Visitors
    description: >-
      Issue timed visitor passes for hotel or office guests and maintain VIP
      allowlists and security blocklists.
  - name: Gates & Devices
    description: >-
      Inspect lane device health, trigger audited gate control operations,
      switch lane modes, send signage/voice prompts, and capture lane cameras.
paths:
  /v1/lanes/setMode:
    post:
      tags:
        - Gates & Devices
      summary: Set lane operating mode
      description: >-
        Transitions a lane operating mode between `NORMAL` automated control,
        `PEAK` high-throughput

        egress, `ALWAYS_OPEN` continuous barrier-up mode, and `DISABLED`
        maintenance lock.


        **Required scope:** `gates:control`


        > **High-Privilege Operations:** Disabled by default for standard
        payment/merchant API keys. Granted only to certified operators and
        system integrators.
      operationId: setLaneMode
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - facilityId
                - laneId
                - mode
                - operator
              properties:
                facilityId:
                  $ref: '#/components/schemas/FacilityId'
                laneId:
                  type: string
                mode:
                  type: string
                  enum:
                    - NORMAL
                    - PEAK
                    - ALWAYS_OPEN
                    - DISABLED
                operator:
                  type: string
                reason:
                  type: string
            example:
              facilityId: MY-KL-001
              laneId: LN-OUT-01
              mode: ALWAYS_OPEN
              operator: event_ops_01
              reason: Concert exit peak clearing
      responses:
        '200':
          description: Lane operating mode updated.
          content:
            application/json:
              schema:
                type: object
                required:
                  - facilityId
                  - laneId
                  - previousMode
                  - mode
                  - updatedAt
                properties:
                  facilityId:
                    $ref: '#/components/schemas/FacilityId'
                  laneId:
                    type: string
                  previousMode:
                    type: string
                    enum:
                      - NORMAL
                      - PEAK
                      - ALWAYS_OPEN
                      - DISABLED
                  mode:
                    type: string
                    enum:
                      - NORMAL
                      - PEAK
                      - ALWAYS_OPEN
                      - DISABLED
                  updatedAt:
                    $ref: '#/components/schemas/IsoTimestamp'
              example:
                facilityId: MY-KL-001
                laneId: LN-OUT-01
                previousMode: NORMAL
                mode: ALWAYS_OPEN
                updatedAt: '2026-11-27T12:06:10+08:00'
        '503':
          $ref: '#/components/responses/FacilityOffline'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Unique UUID recommended on all mutating calls to safely retry after
        network timeouts.
      schema:
        type: string
        format: uuid
        example: 550e8400-e29b-41d4-a716-446655440000
  schemas:
    FacilityId:
      type: string
      description: Unique external facility identifier within your partner scope.
      example: MY-KL-001
    IsoTimestamp:
      type: string
      format: date-time
      description: ISO 8601 timestamp with explicit timezone offset or `Z` UTC suffix.
      example: '2026-11-27T12:00:00+08:00'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            details:
              type:
                - object
                - 'null'
  responses:
    FacilityOffline:
      description: Target parking facility is temporarily unreachable or offline.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: FACILITY_OFFLINE
              message: >-
                Facility MY-KL-001 is temporarily unreachable. Please retry
                shortly.
              requestId: req_01JDR9Y5G9Z0K
              details: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >
        Partner API Key passed in the `Authorization` header: `Authorization:
        Bearer ak_live_...`

        (or `ak_test_...` for Cloud Sandbox, `ak_local_...` for Local Direct).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.