# Create a new work queue.

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

## Security:

  - `bearerAuth` (unknown)
    http bearer Token

  - `apiKeyAuth` (unknown)
    apiKey in header Key

## Request fields (application/json):

  - `id` (string)
    Work Queue id

  - `workQueueName` (string)
    Work Queue Name

  - `workQueueType` (string)
    Work Queue Type

  - `useUnifiedRouting` (boolean)

  - `assignmentProvider` (string)

  - `routingStrategy` (string)
    Routing Strategy

  - `userGroups` (array)
    User groups present in the work queue

  - `users` (array)
    Users present in the work queue

  - `availableStatuses` (array)
    The status which should be considered to assign new cases.

  - `stickinessStrategy` (string)

  - `stickinessTimeout` (integer)

  - `capacity` (integer)

  - `maxRejectionCountPerUser` (integer)

  - `maxRejectionCount` (integer)

  - `answeringTimeout` (string)

  - `activeConversationTimeout` (integer)

  - `stickinessCapacityCheck` (boolean)

  - `stickinessWaitTimeout` (integer)
    Time for which a task should wait to be assigned to the sticky agent, if it comes post active conversation timeout but within stickiness timeout.

  - `activeConversationTimeoutCapacity` (integer)

  - `waitForAgentConfirmation` (boolean)

  - `agentWaitTime` (integer)

  - `agentWaitTimeUnit` (string)

  - `deleted` (boolean)

  - `sortKey` (string)
    This would be used to sort the inflow and assign work based on the selected value. Example: Sort by Work creation time would assign the oldest work first.

  - `sortDirection` (string)

  - `backupAssignmentStrategy` (string)

  - `backups` (array)

  - `ownerUserId` (integer)

  - `lastModifiedUserId` (integer)

  - `createdTime` (integer)
    Work queue creation time

  - `modifiedTime` (integer)
    Work queue modified time

  - `clientId` (integer)

  - `ruleIds` (array)

  - `onAssignmentCancelRuleIds` (array)

  - `routingEvaluationMethod` (string)
    Work queue routing evaluation method

  - `additional` (object)

  - `businessHoursId` (string)

  - `shareConfigs` (array)

  - `shareConfigs.type` (string, required)
    Type e.g. USER, GLOBAL, CLIENT

  - `shareConfigs.ids` (array)
    IDs based on type.

  - `onTimeoutStatus` (string)

  - `description` (string)
    Work queue description

  - `stickinessFeedbackRatingThreshold` (number)

  - `smartAssignmentEnabledPercentage` (number)

  - `smartAssignmentEnabled` (boolean)

  - `order` (number)

  - `slaTargetTimeUnit` (string)

  - `slaTargetDuration` (integer)

  - `slaTargetInTimeRangeTimeUnit` (string)

  - `slaTargetInTimeRangeDuration` (integer)

  - `slaTargetPercentage` (number)

  - `applicationId` (string)

  - `externalQueueId` (string)

  - `voiceConfigEnabled` (boolean)
    This will enable the voice config for all calls coming in this queue.

  - `partnerCustomProperties` (object)
    Work queue custom properties

  - `workQueueId` (string)

  - `userIds` (array)

  - `userGroupIds` (array)

  - `priority` (integer)

  - `workAssignmentSortKey` (string)

  - `primary` (boolean)

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `id` (string)
    Work Queue id

  - `workQueueName` (string)
    Work Queue Name

  - `workQueueType` (string)
    Work Queue Type

  - `useUnifiedRouting` (boolean)

  - `assignmentProvider` (string)

  - `routingStrategy` (string)
    Routing Strategy

  - `userGroups` (array)
    User groups present in the work queue

  - `users` (array)
    Users present in the work queue

  - `availableStatuses` (array)
    The status which should be considered to assign new cases.

  - `stickinessStrategy` (string)

  - `stickinessTimeout` (integer)

  - `capacity` (integer)

  - `maxRejectionCountPerUser` (integer)

  - `maxRejectionCount` (integer)

  - `answeringTimeout` (string)

  - `activeConversationTimeout` (integer)

  - `stickinessCapacityCheck` (boolean)

  - `stickinessWaitTimeout` (integer)
    Time for which a task should wait to be assigned to the sticky agent, if it comes post active conversation timeout but within stickiness timeout.

  - `activeConversationTimeoutCapacity` (integer)

  - `waitForAgentConfirmation` (boolean)

  - `agentWaitTime` (integer)

  - `agentWaitTimeUnit` (string)

  - `deleted` (boolean)

  - `sortKey` (string)
    This would be used to sort the inflow and assign work based on the selected value. Example: Sort by Work creation time would assign the oldest work first.

  - `sortDirection` (string)

  - `backupAssignmentStrategy` (string)

  - `backups` (array)

  - `ownerUserId` (integer)

  - `lastModifiedUserId` (integer)

  - `createdTime` (integer)
    Work queue creation time

  - `modifiedTime` (integer)
    Work queue modified time

  - `clientId` (integer)

  - `ruleIds` (array)

  - `onAssignmentCancelRuleIds` (array)

  - `routingEvaluationMethod` (string)
    Work queue routing evaluation method

  - `additional` (object)

  - `businessHoursId` (string)

  - `shareConfigs` (array)

  - `shareConfigs.type` (string, required)
    Type e.g. USER, GLOBAL, CLIENT

  - `shareConfigs.ids` (array)
    IDs based on type.

  - `onTimeoutStatus` (string)

  - `description` (string)
    Work queue description

  - `stickinessFeedbackRatingThreshold` (number)

  - `smartAssignmentEnabledPercentage` (number)

  - `smartAssignmentEnabled` (boolean)

  - `order` (number)

  - `slaTargetTimeUnit` (string)

  - `slaTargetDuration` (integer)

  - `slaTargetInTimeRangeTimeUnit` (string)

  - `slaTargetInTimeRangeDuration` (integer)

  - `slaTargetPercentage` (number)

  - `applicationId` (string)

  - `externalQueueId` (string)

  - `voiceConfigEnabled` (boolean)
    This will enable the voice config for all calls coming in this queue.

  - `partnerCustomProperties` (object)
    Work queue custom properties

  - `workQueueId` (string)

  - `userIds` (array)

  - `userGroupIds` (array)

  - `priority` (integer)

  - `workAssignmentSortKey` (string)

  - `primary` (boolean)

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

