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

# Set a slot's lineup on a desk

> The published views that show in the slot on this desk, in order. Organization admins only. Refused when it exceeds the slot's cardinality (`lineup_over_cardinality`) or names a view that does not qualify (`view_not_qualified`). Send the revision you read as `If-Match` (`0` for a new lineup); a stale one is refused (`lineup_changed`).



## OpenAPI

````yaml /openapi.json put /customization/lineups/{desk}/{slot}
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /customization/lineups/{desk}/{slot}:
    put:
      tags:
        - Views
      summary: Set a slot's lineup on a desk
      description: >-
        The published views that show in the slot on this desk, in order.
        Organization admins only. Refused when it exceeds the slot's cardinality
        (`lineup_over_cardinality`) or names a view that does not qualify
        (`view_not_qualified`). Send the revision you read as `If-Match` (`0`
        for a new lineup); a stale one is refused (`lineup_changed`).
      operationId: setViewLineup
      parameters:
        - schema:
            type: string
            maxLength: 32
            pattern: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
          required: true
          name: desk
          in: path
        - schema:
            type: string
            maxLength: 160
            pattern: ^[a-z][a-z0-9-]*(\.[a-z0-9]+([.-][a-z0-9]+)*)+$
          required: true
          name: slot
          in: path
        - schema:
            type: string
            pattern: ^"?\d+"?$
          required: false
          name: if-match
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                views:
                  type: array
                  items:
                    type: string
                    format: uuid
                  maxItems: 100
              required:
                - views
              additionalProperties: false
      responses:
        '200':
          description: The lineup.
          content:
            application/json:
              schema:
                type: object
                properties:
                  desk:
                    type: string
                  slot:
                    type: string
                  views:
                    type: array
                    items:
                      type: string
                      format: uuid
                  revision:
                    type: number
                  updatedAt:
                    type: string
                required:
                  - desk
                  - slot
                  - views
                  - revision
                  - updatedAt
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '403':
          description: >-
            The caller may not do this, or UI Modules are off for the
            organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '412':
          description: The lineup changed since it was read.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '422':
          description: Over cardinality, or a view does not qualify.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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