Команда для создания конференции.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="error.xsd"/> <xs:simpleType name="Mode"> <xs:restriction base="xs:string"> <xs:enumeration value="public"/> <xs:enumeration value="private"/> </xs:restriction> </xs:simpleType> <xs:complexType name="Participant"> <xs:attribute name="number" use="optional"/> <!-- If number is specified conversation_id will be ignored --> <xs:attribute name="conversation_id" use="optional"/> </xs:complexType> <xs:complexType name="CreateConference"> <xs:sequence> <xs:element name="participant" minOccurs="0" maxOccurs="unbounded" type="Participant"/> </xs:sequence> <xs:attribute name="conference_id" type="xs:string" use="required"/> <xs:attribute name="description" type="xs:string" use="optional"/> <xs:attribute name="mode" type="Mode" use="optional"/> </xs:complexType> <!-- in --> <xs:element name="in"> <xs:complexType> <xs:all> <xs:element name="request"> <xs:complexType> <xs:sequence> <xs:element name="create_conference" type="CreateConference"/> </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> <xs:element name="error" type="errorType"/> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
Ответы:
200
403 - Ошибки передаются в теле ответа
Ошибки, передаваемые в теле ответа:
- cannot_perform_cmd