# Returns skill-based work queue stats.

Endpoint: POST /workQueue/workQueueStatsSkillBased
Version: 3.0.0
Security: bearerAuth, apiKeyAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer Token

  - `apiKeyAuth` (unknown)
    apiKey in header Key

## Request fields (application/json):

  - `skillNameVsProficiency` (object, required)
    Skill name vs proficiency mapping

  - `workQueueId` (string, required)
    Work queue Id

  - `priority` (integer)
    Priority

  - `channelForAssignmentCheck` (string)
    Channel used for new case assignment eligibility check

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `numberOfAvailableAgents` (integer)
    Number of available agents

  - `numberOfIdleAgents` (integer)
    Number of idle agents

  - `numberOfLoggedInAgents` (integer)
    Number of logged in agents

  - `maxIdleAgentTime` (integer)
    Max time an agent has been idle in this queue.

  - `estimatedWaitTimeMillis` (integer)

  - `averageWaitTimeMillis` (integer)
    Average wait time of the calls in the queue in milliseconds

  - `oldestCustomerWaitTime` (integer)
    Oldest wait time for customer currently waiting in queue in milliseconds.

  - `currentBackLog` (integer)
    Current backlog in work queue

  - `businessHourStartTime` (integer)
    Business hour start time for the current day in epoch format

  - `businessHourEndTime` (integer)
    Business hour end time for the current day in epoch format

  - `canAssignNewCase` (boolean)
    If a new case can be assigned or not, this is only applicable when channelForAssignmentCheck is present in the payload

## Response 400:

  - `400` (unknown)
    Bad request

## Response 400 fields (application/json):

  - `data` (object)

  - `errors` (array)

  - `errors.id` (string, required)
    24-character hex ObjectId

  - `errors.code` (integer, required)

  - `errors.message` (string, required)
    Dotted error key (e.g. account.not.found)

  - `metadata` (object)

## Response 401:

  - `401` (unknown)
    Missing or invalid authentication

## Response 401 fields (application/json):

  - `data` (object)

  - `errors` (array)

  - `errors.id` (string, required)
    24-character hex ObjectId

  - `errors.code` (integer, required)

  - `errors.message` (string, required)
    Dotted error key (e.g. account.not.found)

  - `metadata` (object)

## Response 403:

  - `403` (unknown)
    Insufficient permissions

## Response 403 fields (application/json):

  - `data` (object)

  - `errors` (array)

  - `errors.id` (string, required)
    24-character hex ObjectId

  - `errors.code` (integer, required)

  - `errors.message` (string, required)
    Dotted error key (e.g. account.not.found)

  - `metadata` (object)

## Response 404:

  - `404` (unknown)
    Resource not found

## Response 404 fields (application/json):

  - `data` (object)

  - `errors` (array)

  - `errors.id` (string, required)
    24-character hex ObjectId

  - `errors.code` (integer, required)

  - `errors.message` (string, required)
    Dotted error key (e.g. account.not.found)

  - `metadata` (object)

