# setLedMapping

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /json-rpc/output/mappingmode:
    post:
      summary: setLedMapping
      deprecated: false
      description: Switch the LED mapping mode for the incoming image.
      tags:
        - Hyperion API/Controls/Output Controls
        - Websocket
        - HTTP/S
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                command:
                  type: string
                  enum:
                    - processing
                  description: The type of command to execute.
                instance:
                  type: array
                  items: &ref_0
                    $ref: '#/components/schemas/instance%20-%20single'
                  uniqueItems: true
                  description: >-
                    List of instance indices (0-254) to which the command
                    applies. An empty array applies a command to all instances.
                mappingType:
                  type: string
                  enum:
                    - multicolor_mean
                    - multicolor_mean_squared
                    - unicolor_mean
                    - dominant_color
                    - unicolor_dominant
                    - dominant_color_advanced
                    - unicolor_dominant_advanced
                  examples:
                    - multicolor_mean
                  x-apidog-enum:
                    - value: multicolor_mean
                      name: ''
                      description: Mean Color - simple
                    - value: multicolor_mean_squared
                      name: ''
                      description: Mean Color - squared
                    - value: unicolor_mean
                      name: ''
                      description: Mean Color whole image
                    - value: dominant_color
                      name: ''
                      description: Dominant Color - simple
                    - value: unicolor_dominant
                      name: ''
                      description: Dominant Color whole image - simple
                    - value: dominant_color_advanced
                      name: ''
                      description: Dominant Color - advanced
                    - value: unicolor_dominant_advanced
                      name: ''
                      description: Dominant Color whole image - advanced
                  description: Mapping type
                tan:
                  type: integer
                  minimum: 0
                  examples:
                    - 4711
                  description: Transaction number for tracking requests and responses.
              x-apidog-orders:
                - command
                - 01JSSTA5D6SCBB4SX7ERHEK4WX
                - mappingType
                - 01JSSTAQV7Z6AKQ22EEN30VFJP
              x-apidog-refs:
                01JSSTA5D6SCBB4SX7ERHEK4WX:
                  $ref: '#/components/schemas/instance%20-%20multiple'
                01JSSTAQV7Z6AKQ22EEN30VFJP:
                  $ref: '#/components/schemas/tan'
              required:
                - command
                - mappingType
              x-apidog-ignore-properties:
                - instance
                - tan
            example:
              command: processing
              instance: []
              mappingType: multicolor_mean
              tan: 4711
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  command:
                    type: string
                  subcommand:
                    type: string
                  success:
                    type: boolean
                  error:
                    type: string
                  errorData:
                    type: array
                    items:
                      type: object
                      properties:
                        description:
                          type: string
                      x-apidog-orders:
                        - description
                      x-apidog-ignore-properties: []
                  tan:
                    type: integer
                required:
                  - command
                  - success
                  - tan
                x-apidog-orders:
                  - command
                  - subcommand
                  - success
                  - error
                  - errorData
                  - tan
                x-apidog-ignore-properties: []
              examples:
                '1':
                  summary: Success
                  value:
                    command: processing
                    success: true
                    tan: 4711
                '2':
                  summary: Error
                  value:
                    command: processing
                    error: Errors for instance(s) given
                    errorData:
                      - description: >-
                          Instance [2] is not running, but the (sub-) command
                          requires a running instance.
                      - description: No instance(s) provided, but required
                    success: false
                    tan: 4711
          headers: {}
          x-apidog-name: Success
      security:
        - bearer: []
      x-apidog-folder: Hyperion API/Controls/Output Controls
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/894413/apis/api-16286590-run
components:
  schemas:
    instance - single:
      type: integer
      minimum: 0
      maximum: 254
      description: Instance index (0-254) to which the command applies.
      x-apidog-folder: ''
    tan:
      type: object
      properties:
        tan:
          type: integer
          minimum: 0
          examples:
            - 4711
          description: Transaction number for tracking requests and responses.
      x-apidog-orders:
        - tan
      title: tan
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    instance - multiple:
      type: object
      properties:
        instance:
          type: array
          items: *ref_0
          uniqueItems: true
          description: >-
            List of instance indices (0-254) to which the command applies. An
            empty array applies a command to all instances.
      x-apidog-orders:
        - instance
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: http://{{host}}:8090
    description: Develop Env
  - url: https://{{host}}:8092
    description: Testing Env
security: []

```
