POST api/Callcenter/BulkInsert

Массовая вставка истории звонков

Request Information

URI Parameters

None.

Body Parameters

Данные о звонках

Collection of CallRequest
NameDescriptionTypeAdditional information
SourceCode

Источник

string

None.

CallID

Уникальный идентификатор звонка

string

None.

CallType

Тип звонка. 0 - Входящий, 1 - Исходящий

CallType

None.

CallNumberOwn

Свой номер. В случае исходящего, номер с которого звонят, для входящего - на какой звонят

string

None.

CallNumberInternal

Внутренний номер

string

None.

CallNumberClient

Номер клиента

string

None.

CallDateInit

Дата и время инициации звонка

date

None.

CallDateStart

Дата и время снятия трубки

date

None.

CallDateEnd

Дата и время завершения звонка

date

None.

Request Formats

application/json, text/json, text/html

Sample:
[
  {
    "SourceCode": "sample string 1",
    "CallID": "sample string 2",
    "CallType": 0,
    "CallNumberOwn": "sample string 3",
    "CallNumberInternal": "sample string 4",
    "CallNumberClient": "sample string 5",
    "CallDateInit": "2025-04-29T10:16:50.7287717Z",
    "CallDateStart": "2025-04-29T10:16:50.7287717Z",
    "CallDateEnd": "2025-04-29T10:16:50.7287717Z"
  },
  {
    "SourceCode": "sample string 1",
    "CallID": "sample string 2",
    "CallType": 0,
    "CallNumberOwn": "sample string 3",
    "CallNumberInternal": "sample string 4",
    "CallNumberClient": "sample string 5",
    "CallDateInit": "2025-04-29T10:16:50.7287717Z",
    "CallDateStart": "2025-04-29T10:16:50.7287717Z",
    "CallDateEnd": "2025-04-29T10:16:50.7287717Z"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCallcenterController.CallRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apec.WebApi.Controllers">
  <CallcenterController.CallRequest>
    <CallDateEnd>2025-04-29T13:16:50.7287717+03:00</CallDateEnd>
    <CallDateInit>2025-04-29T13:16:50.7287717+03:00</CallDateInit>
    <CallDateStart>2025-04-29T13:16:50.7287717+03:00</CallDateStart>
    <CallID>sample string 2</CallID>
    <CallNumberClient>sample string 5</CallNumberClient>
    <CallNumberInternal>sample string 4</CallNumberInternal>
    <CallNumberOwn>sample string 3</CallNumberOwn>
    <CallType>ctIn</CallType>
    <SourceCode>sample string 1</SourceCode>
  </CallcenterController.CallRequest>
  <CallcenterController.CallRequest>
    <CallDateEnd>2025-04-29T13:16:50.7287717+03:00</CallDateEnd>
    <CallDateInit>2025-04-29T13:16:50.7287717+03:00</CallDateInit>
    <CallDateStart>2025-04-29T13:16:50.7287717+03:00</CallDateStart>
    <CallID>sample string 2</CallID>
    <CallNumberClient>sample string 5</CallNumberClient>
    <CallNumberInternal>sample string 4</CallNumberInternal>
    <CallNumberOwn>sample string 3</CallNumberOwn>
    <CallType>ctIn</CallType>
    <SourceCode>sample string 1</SourceCode>
  </CallcenterController.CallRequest>
</ArrayOfCallcenterController.CallRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.