Команда для немедленного распределения разговора из очереди на указанного оператора.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="error.xsd"/> <xs:complexType name="ForceDistribute"> <xs:attribute name="queue_id" use="required"/> <xs:attribute name="conversation_id" use="required"/> <xs:attribute name="operator_id" use="required"/> </xs:complexType> <!-- in --> <xs:element name="in"> <xs:complexType> <xs:all> <xs:element name="request"> <xs:complexType> <xs:sequence> <xs:element name="force_distribute" type="ForceDistribute"/> </xs:sequence> </xs:complexType> </xs:element> </xs:all> </xs:complexType> </xs:element> <!-- out --> <xs:element name="out"> <xs:complexType> <xs:choice> <xs:element name="response"> <xs:complexType> <xs:sequence> <xs:element name="ok"/> </xs:sequence> </xs:complexType> </xs:element> <!-- error codes: wrong_phase, no_such_conversation, busy--> <xs:element name="error" type="errorType"/> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
Ответы:
200
Ошибки, передаваемые в теле ответа:
- no_such_conversation
- wrong_phase
403
Ошибки, передаваемые в теле ответа:
- cannot_perform_cmd