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

# Review a publication request

> The request with what its approver reviews: the source, the live version's source to compare, the declared requests with the writes first, and the slot.



## OpenAPI

````yaml /openapi.json get /customization/publication-requests/{request}
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/publication-requests/{request}:
    get:
      tags:
        - Views
      summary: Review a publication request
      description: >-
        The request with what its approver reviews: the source, the live
        version's source to compare, the declared requests with the writes
        first, and the slot.
      operationId: getViewPublicationRequest
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: request
          in: path
      responses:
        '200':
          description: The request under review.
          content:
            application/json:
              schema:
                type: object
                properties:
                  request:
                    type: object
                    properties:
                      warnings:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              enum:
                                - slot_version_deprecated
                            message:
                              type: string
                            sunsetAt:
                              type: string
                              nullable: true
                            replacedBy:
                              type: number
                              nullable: true
                          required:
                            - code
                            - message
                            - sunsetAt
                            - replacedBy
                      id:
                        type: string
                        format: uuid
                      viewId:
                        type: string
                        format: uuid
                      version:
                        type: number
                      meta:
                        nullable: true
                      lineups:
                        type: array
                        items:
                          type: object
                          properties:
                            desk:
                              type: string
                              maxLength: 32
                              pattern: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
                            position:
                              type: integer
                              minimum: 0
                          required:
                            - desk
                          additionalProperties: false
                      requestedByUserId:
                        type: string
                      status:
                        type: string
                        enum:
                          - open
                          - approved
                          - declined
                          - withdrawn
                      decidedByUserId:
                        type: string
                        nullable: true
                      decidedAt:
                        type: string
                        nullable: true
                      createdAt:
                        type: string
                    required:
                      - id
                      - viewId
                      - version
                      - lineups
                      - requestedByUserId
                      - status
                      - decidedByUserId
                      - decidedAt
                      - createdAt
                  view:
                    type: object
                    properties:
                      warnings:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              enum:
                                - slot_version_deprecated
                            message:
                              type: string
                            sunsetAt:
                              type: string
                              nullable: true
                            replacedBy:
                              type: number
                              nullable: true
                          required:
                            - code
                            - message
                            - sunsetAt
                            - replacedBy
                      id:
                        type: string
                        format: uuid
                      slot:
                        type: string
                      title:
                        type: string
                      authorUserId:
                        type: string
                      trusted:
                        type: boolean
                      createdAt:
                        type: string
                      liveVersion:
                        type: number
                        nullable: true
                      liveMeta:
                        nullable: true
                      publishedAt:
                        type: string
                        nullable: true
                      versions:
                        type: number
                    required:
                      - id
                      - slot
                      - title
                      - authorUserId
                      - trusted
                      - createdAt
                      - liveVersion
                      - publishedAt
                      - versions
                  version:
                    type: object
                    properties:
                      warnings:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              enum:
                                - slot_version_deprecated
                            message:
                              type: string
                            sunsetAt:
                              type: string
                              nullable: true
                            replacedBy:
                              type: number
                              nullable: true
                          required:
                            - code
                            - message
                            - sunsetAt
                            - replacedBy
                      viewId:
                        type: string
                        format: uuid
                      version:
                        type: number
                      slotVersion:
                        type: number
                      digest:
                        type: string
                      requests:
                        type: array
                        items:
                          type: string
                      compilerRevision:
                        type: string
                      authorUserId:
                        type: string
                      createdAt:
                        type: string
                      source:
                        type: object
                        properties:
                          entry:
                            type: string
                          files:
                            type: object
                            additionalProperties:
                              type: string
                        required:
                          - entry
                          - files
                    required:
                      - viewId
                      - version
                      - slotVersion
                      - digest
                      - requests
                      - compilerRevision
                      - authorUserId
                      - createdAt
                  live:
                    type: object
                    nullable: true
                    properties:
                      warnings:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              enum:
                                - slot_version_deprecated
                            message:
                              type: string
                            sunsetAt:
                              type: string
                              nullable: true
                            replacedBy:
                              type: number
                              nullable: true
                          required:
                            - code
                            - message
                            - sunsetAt
                            - replacedBy
                      viewId:
                        type: string
                        format: uuid
                      version:
                        type: number
                      slotVersion:
                        type: number
                      digest:
                        type: string
                      requests:
                        type: array
                        items:
                          type: string
                      compilerRevision:
                        type: string
                      authorUserId:
                        type: string
                      createdAt:
                        type: string
                      source:
                        type: object
                        properties:
                          entry:
                            type: string
                          files:
                            type: object
                            additionalProperties:
                              type: string
                        required:
                          - entry
                          - files
                    required:
                      - viewId
                      - version
                      - slotVersion
                      - digest
                      - requests
                      - compilerRevision
                      - authorUserId
                      - createdAt
                  requests:
                    type: object
                    properties:
                      writes:
                        type: array
                        items:
                          type: string
                      reads:
                        type: array
                        items:
                          type: string
                    required:
                      - writes
                      - reads
                  slot:
                    type: object
                    additionalProperties:
                      nullable: true
                  warnings:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          enum:
                            - slot_version_deprecated
                        message:
                          type: string
                        sunsetAt:
                          type: string
                          nullable: true
                        replacedBy:
                          type: number
                          nullable: true
                      required:
                        - code
                        - message
                        - sunsetAt
                        - replacedBy
                required:
                  - request
                  - view
                  - version
                  - live
                  - requests
                  - slot
                  - warnings
        '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
      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.