declineAgentWork

Declines a work item that’s assigned to an agent. Available in API versions 32.0 and later.

NameTypeDescription
workIdStringThe ID of the work item that the agent declines.
declineReasonStringThe provided reason for why the agent declined the work request.
callbackfunctionJavaScript method to call when an agent declines the work item associated with the workId.

This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following properties:

NameTypeDescription
successBooleantrue if declining the work item was successful; false if declining the work item wasn’t successful.