Команда для создания конференции.

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/<DOMAIN>/service/cc/arm/create_conference

Коды ответов:

200
403 — Ошибки передаются в теле ответа

Ошибки, передаваемые в теле ответа:

  • cannot_perform_cmd

XSD-схема XML-запроса/ответа:

<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:simpleType name="Format">
        <xs:restriction base="xs:string">
            <xs:enumeration value="classic"/>
            <xs:enumeration value="consultation"/>
        </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:attribute name="format" type="Format" use="optional"/>
        <xs:attribute name="workitem_id" 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>
XML

Пример использует технологию websocket

Пример:
Запрос:

0100000003930016create_conference
[
  {
    "_name": "in",
    "_content": [
      {
        "_name": "request",
        "_content": [
          {
            "_name": "create_conference",
            "_attributes": {
              "conference_id": "1607929308885",
              "description": "14:01 ",
              "mode": "public"
            },
            "_content": [
              {
                "_name": "participant",
                "_attributes": {
                  "conversation_id": "0647e2e06b635eb3"
                }
              },
              {
                "_name": "participant",
                "_attributes": {
                  "number": "104",
                  "is_manager": "false"
                }
              }
            ]
          }
        ]
      }
    ]
  }
]                       
PY

Код ответа:

200

Ответ:

0100000002240016200
[
  {
    "_name": "out",
    "_attributes": {
      "xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance",
      "xs:noNamespaceSchemaLocation": "create_conference.xsd"
    },
    "_content": [
      {
        "_name": "response",
        "_content": [
          {
            "_name": "ok"
          }
        ]
      }
    ]
  }
]
PY