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

# POST /queues/{queueId}/deny

> Deny a consumer from the queue



## OpenAPI

````yaml /api/openapi/consumer-api.json post /queues/{queueId}/deny
openapi: 3.1.0
info:
  description: Consumer API for Fanfare
  title: Fanfare Consumer API
  version: 1.0.0
servers:
  - description: Production
    url: https://consumer.fanfare.io/api
  - description: Local development
    url: http://localhost:4802
security: []
paths:
  /queues/{queueId}/deny:
    post:
      tags:
        - Queues
      description: Deny a consumer from the queue
      operationId: postQueuesByQueueIdDeny
      parameters:
        - in: path
          name: queueId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                consumerId:
                  type: string
                reason:
                  enum:
                    - QUEUE_CLOSED
                    - BOT_DETECTED
                    - VALIDATION_LIMIT_REACHED
                    - ORDER_LIMIT_EXCEEDED
                    - ADMISSION_EXPIRED
                  type: string
              required:
                - consumerId
                - reason
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                anyOf:
                  - properties:
                      estimatedWaitTimeInSeconds:
                        type: number
                      position:
                        type: number
                      positionDisplayMode:
                        enum:
                          - precise
                          - qualitative
                      status:
                        const: QUEUED
                    required:
                      - status
                      - position
                      - estimatedWaitTimeInSeconds
                    type: object
                  - anyOf:
                      - properties:
                          dequeuedAt:
                            anyOf:
                              - format: date-time
                                type: string
                              - type: 'null'
                          position:
                            anyOf:
                              - type: number
                              - type: 'null'
                          status:
                            const: NOT_QUEUED
                        required:
                          - status
                        type: object
                      - properties:
                          dequeuedAt:
                            anyOf:
                              - format: date-time
                                type: string
                              - type: 'null'
                          position:
                            anyOf:
                              - type: number
                              - type: 'null'
                          status:
                            const: LEFT
                        required:
                          - status
                        type: object
                      - properties:
                          admissionGrant:
                            type: string
                          dequeuedAt:
                            anyOf:
                              - format: date-time
                                type: string
                              - type: 'null'
                          expiresAt:
                            format: date-time
                            type: string
                          position:
                            anyOf:
                              - type: number
                              - type: 'null'
                          status:
                            const: ADMITTED
                        required:
                          - status
                          - admissionGrant
                        type: object
                      - properties:
                          admissionGrant:
                            type: string
                          completedAt:
                            anyOf:
                              - format: date-time
                                type: string
                              - type: 'null'
                          position:
                            anyOf:
                              - type: number
                              - type: 'null'
                          status:
                            const: COMPLETED
                        required:
                          - status
                          - admissionGrant
                        type: object
                      - properties:
                          dequeuedAt:
                            anyOf:
                              - format: date-time
                                type: string
                              - type: 'null'
                          position:
                            anyOf:
                              - type: number
                              - type: 'null'
                          reason:
                            type: string
                          status:
                            const: DENIED
                        required:
                          - status
                          - reason
                        type: object
          description: Denied consumer from queue
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    const: validation_error
                  issues:
                    items:
                      properties:
                        expected:
                          type: string
                        kind:
                          type: string
                        message:
                          type: string
                        path:
                          items:
                            properties:
                              input: {}
                              key:
                                type: string
                              origin:
                                type: string
                              type:
                                type: string
                            required:
                              - type
                              - origin
                              - input
                              - key
                            type: object
                          type: array
                        received:
                          type: string
                        type:
                          type: string
                      required:
                        - kind
                        - type
                        - expected
                        - received
                        - message
                        - path
                      type: object
                    type: array
                required:
                  - error
                  - issues
                type: object
          description: Bad Request - Invalid input schema
        '401':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Unauthorized - Authentication required
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Forbidden - User must be authenticated
        '500':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Internal server error

````