Skip to main content

easy_hunting_hunting_agent_queues

Creates, updates, deletes, gets or lists an easy_hunting_hunting_agent_queues resource.

Overview​

Nameeasy_hunting_hunting_agent_queues
TypeResource
Idovh.telephony.easy_hunting_hunting_agent_queues

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
agent_idinteger (wire: agentId)
queue_idinteger (wire: queueId)
positionintegerThe position in the queue

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_id, billing_account, queue_id, service_nameGet an agent position in a queue
listselectagent_id, billing_account, service_namex_pagination_modeList the queues of an agent
createinsertagent_id, billing_account, service_name, position, queue_idAssign an agent to a queue
updateupdateagent_id, billing_account, queue_id, service_nameUpdate an agent position in a queue
deletedeleteagent_id, billing_account, queue_id, service_nameRemove an agent from a queue

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_idinteger (wire: agentId)
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
queue_idinteger (wire: queueId)
service_namestring (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get an agent position in a queue

SELECT
agent_id,
queue_id,
position
FROM ovh.telephony.easy_hunting_hunting_agent_queues
WHERE agent_id = '{{ agent_id }}' -- required
AND billing_account = '{{ billing_account }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Assign an agent to a queue

INSERT INTO ovh.telephony.easy_hunting_hunting_agent_queues (
position,
queue_id,
agent_id,
billing_account,
service_name
)
SELECT
{{ position }} /* required */,
{{ queue_id }} /* required */,
'{{ agent_id }}',
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
agent_id,
queue_id,
position
;

UPDATE examples​

Update an agent position in a queue

UPDATE ovh.telephony.easy_hunting_hunting_agent_queues
SET
position = {{ position }}
WHERE
agent_id = '{{ agent_id }}' --required
AND billing_account = '{{ billing_account }}' --required
AND queue_id = '{{ queue_id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Remove an agent from a queue

DELETE FROM ovh.telephony.easy_hunting_hunting_agent_queues
WHERE agent_id = '{{ agent_id }}' --required
AND billing_account = '{{ billing_account }}' --required
AND queue_id = '{{ queue_id }}' --required
AND service_name = '{{ service_name }}' --required
;