PUT api/lead/appeals/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Collection of AppealItemData
NameDescriptionTypeAdditional information
Id

integer

None.

IsEdit

boolean

None.

AppealTypeId

integer

None.

AppealTypeName

string

None.

ClientId

integer

None.

ClientName

string

None.

Text

string

None.

Comment

string

None.

CreateDate

SerializedDateTime

None.

UserId

integer

None.

UserName

string

None.

IsFromClient

boolean

None.

ContactInfo

string

None.

IsSendEmail

boolean

None.

IsUpdateClientEmail

boolean

None.

IsHaveSentMail

boolean

None.

LeadId

integer

None.

PhoneCall

PhoneCallInfo

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "IsEdit": true,
    "AppealTypeId": 2,
    "AppealTypeName": "sample string 3",
    "ClientId": 1,
    "ClientName": "sample string 4",
    "Text": "sample string 5",
    "Comment": "sample string 6",
    "CreateDate": {
      "Serialized": "01.01.1970",
      "HasValue": true,
      "Milliseconds": 3,
      "Format": "sample string 4"
    },
    "UserId": 1,
    "UserName": "sample string 7",
    "IsFromClient": true,
    "ContactInfo": "sample string 9",
    "IsSendEmail": true,
    "IsUpdateClientEmail": true,
    "IsHaveSentMail": true,
    "LeadId": 1,
    "PhoneCall": {
      "Id": 1,
      "ExternalId": "sample string 2",
      "RecordingId": "sample string 3",
      "CallInit": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "CallStart": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "CallEnd": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "FromUserId": 1,
      "FromUserName": "sample string 4",
      "FromUserFirstName": "sample string 5",
      "FromUserMiddleName": "sample string 6",
      "ToUserId": 1,
      "ToUserName": "sample string 7",
      "ToUserFirstName": "sample string 8",
      "ToUserMiddleName": "sample string 9",
      "FromClientId": 1,
      "FromClientName": "sample string 10",
      "FromClientFirstName": "sample string 11",
      "FromClientMiddleName": "sample string 12",
      "ToClientId": 1,
      "ToClientName": "sample string 13",
      "ToClientFirstName": "sample string 14",
      "ToClientMiddleName": "sample string 15",
      "LeadId": 1,
      "LeadName": "sample string 16",
      "FromNumber": "sample string 17",
      "ToNumber": "sample string 18",
      "DisconnectedReason": 1,
      "PreviousCallId": 1,
      "PreviousCallExternalId": "sample string 19",
      "FromPartnerId": 1,
      "ToPartnerId": 1,
      "ToPartnerName": "sample string 20",
      "FromPartnerName": "sample string 21",
      "ExternalNumber": "sample string 22",
      "CalledNumbers": [
        "sample string 1",
        "sample string 2"
      ],
      "Tags": [
        {
          "EntityId": 1,
          "EntityTypeId": 2,
          "Name": "sample string 3",
          "TagId": 4
        },
        {
          "EntityId": 1,
          "EntityTypeId": 2,
          "Name": "sample string 3",
          "TagId": 4
        }
      ]
    }
  },
  {
    "Id": 1,
    "IsEdit": true,
    "AppealTypeId": 2,
    "AppealTypeName": "sample string 3",
    "ClientId": 1,
    "ClientName": "sample string 4",
    "Text": "sample string 5",
    "Comment": "sample string 6",
    "CreateDate": {
      "Serialized": "01.01.1970",
      "HasValue": true,
      "Milliseconds": 3,
      "Format": "sample string 4"
    },
    "UserId": 1,
    "UserName": "sample string 7",
    "IsFromClient": true,
    "ContactInfo": "sample string 9",
    "IsSendEmail": true,
    "IsUpdateClientEmail": true,
    "IsHaveSentMail": true,
    "LeadId": 1,
    "PhoneCall": {
      "Id": 1,
      "ExternalId": "sample string 2",
      "RecordingId": "sample string 3",
      "CallInit": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "CallStart": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "CallEnd": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "FromUserId": 1,
      "FromUserName": "sample string 4",
      "FromUserFirstName": "sample string 5",
      "FromUserMiddleName": "sample string 6",
      "ToUserId": 1,
      "ToUserName": "sample string 7",
      "ToUserFirstName": "sample string 8",
      "ToUserMiddleName": "sample string 9",
      "FromClientId": 1,
      "FromClientName": "sample string 10",
      "FromClientFirstName": "sample string 11",
      "FromClientMiddleName": "sample string 12",
      "ToClientId": 1,
      "ToClientName": "sample string 13",
      "ToClientFirstName": "sample string 14",
      "ToClientMiddleName": "sample string 15",
      "LeadId": 1,
      "LeadName": "sample string 16",
      "FromNumber": "sample string 17",
      "ToNumber": "sample string 18",
      "DisconnectedReason": 1,
      "PreviousCallId": 1,
      "PreviousCallExternalId": "sample string 19",
      "FromPartnerId": 1,
      "ToPartnerId": 1,
      "ToPartnerName": "sample string 20",
      "FromPartnerName": "sample string 21",
      "ExternalNumber": "sample string 22",
      "CalledNumbers": [
        "sample string 1",
        "sample string 2"
      ],
      "Tags": [
        {
          "EntityId": 1,
          "EntityTypeId": 2,
          "Name": "sample string 3",
          "TagId": 4
        },
        {
          "EntityId": 1,
          "EntityTypeId": 2,
          "Name": "sample string 3",
          "TagId": 4
        }
      ]
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfAppealItemData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Appeal.Contract">
  <AppealItemData>
    <AppealTypeId>2</AppealTypeId>
    <AppealTypeName>sample string 3</AppealTypeName>
    <ClientId>1</ClientId>
    <ClientName>sample string 4</ClientName>
    <Comment>sample string 6</Comment>
    <ContactInfo>sample string 9</ContactInfo>
    <CreateDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
      <d3p1:_format>sample string 4</d3p1:_format>
      <d3p1:_serialized>01.01.1970</d3p1:_serialized>
      <d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
    </CreateDate>
    <Id>1</Id>
    <IsEdit>true</IsEdit>
    <IsFromClient>true</IsFromClient>
    <IsHaveSentMail>true</IsHaveSentMail>
    <IsSendEmail>true</IsSendEmail>
    <IsUpdateClientEmail>true</IsUpdateClientEmail>
    <LeadId>1</LeadId>
    <Text>sample string 5</Text>
    <UserId>1</UserId>
    <UserName>sample string 7</UserName>
  </AppealItemData>
  <AppealItemData>
    <AppealTypeId>2</AppealTypeId>
    <AppealTypeName>sample string 3</AppealTypeName>
    <ClientId>1</ClientId>
    <ClientName>sample string 4</ClientName>
    <Comment>sample string 6</Comment>
    <ContactInfo>sample string 9</ContactInfo>
    <CreateDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
      <d3p1:_format>sample string 4</d3p1:_format>
      <d3p1:_serialized>01.01.1970</d3p1:_serialized>
      <d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
    </CreateDate>
    <Id>1</Id>
    <IsEdit>true</IsEdit>
    <IsFromClient>true</IsFromClient>
    <IsHaveSentMail>true</IsHaveSentMail>
    <IsSendEmail>true</IsSendEmail>
    <IsUpdateClientEmail>true</IsUpdateClientEmail>
    <LeadId>1</LeadId>
    <Text>sample string 5</Text>
    <UserId>1</UserId>
    <UserName>sample string 7</UserName>
  </AppealItemData>
</ArrayOfAppealItemData>

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

InsertAppealResponse
NameDescriptionTypeAdditional information
Appeals

Collection of AppealItemData

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Appeals": [
    {
      "Id": 1,
      "IsEdit": true,
      "AppealTypeId": 2,
      "AppealTypeName": "sample string 3",
      "ClientId": 1,
      "ClientName": "sample string 4",
      "Text": "sample string 5",
      "Comment": "sample string 6",
      "CreateDate": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "UserId": 1,
      "UserName": "sample string 7",
      "IsFromClient": true,
      "ContactInfo": "sample string 9",
      "IsSendEmail": true,
      "IsUpdateClientEmail": true,
      "IsHaveSentMail": true,
      "LeadId": 1,
      "PhoneCall": {
        "Id": 1,
        "ExternalId": "sample string 2",
        "RecordingId": "sample string 3",
        "CallInit": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "CallStart": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "CallEnd": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "FromUserId": 1,
        "FromUserName": "sample string 4",
        "FromUserFirstName": "sample string 5",
        "FromUserMiddleName": "sample string 6",
        "ToUserId": 1,
        "ToUserName": "sample string 7",
        "ToUserFirstName": "sample string 8",
        "ToUserMiddleName": "sample string 9",
        "FromClientId": 1,
        "FromClientName": "sample string 10",
        "FromClientFirstName": "sample string 11",
        "FromClientMiddleName": "sample string 12",
        "ToClientId": 1,
        "ToClientName": "sample string 13",
        "ToClientFirstName": "sample string 14",
        "ToClientMiddleName": "sample string 15",
        "LeadId": 1,
        "LeadName": "sample string 16",
        "FromNumber": "sample string 17",
        "ToNumber": "sample string 18",
        "DisconnectedReason": 1,
        "PreviousCallId": 1,
        "PreviousCallExternalId": "sample string 19",
        "FromPartnerId": 1,
        "ToPartnerId": 1,
        "ToPartnerName": "sample string 20",
        "FromPartnerName": "sample string 21",
        "ExternalNumber": "sample string 22",
        "CalledNumbers": [
          "sample string 1",
          "sample string 2"
        ],
        "Tags": [
          {
            "EntityId": 1,
            "EntityTypeId": 2,
            "Name": "sample string 3",
            "TagId": 4
          },
          {
            "EntityId": 1,
            "EntityTypeId": 2,
            "Name": "sample string 3",
            "TagId": 4
          }
        ]
      }
    },
    {
      "Id": 1,
      "IsEdit": true,
      "AppealTypeId": 2,
      "AppealTypeName": "sample string 3",
      "ClientId": 1,
      "ClientName": "sample string 4",
      "Text": "sample string 5",
      "Comment": "sample string 6",
      "CreateDate": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "UserId": 1,
      "UserName": "sample string 7",
      "IsFromClient": true,
      "ContactInfo": "sample string 9",
      "IsSendEmail": true,
      "IsUpdateClientEmail": true,
      "IsHaveSentMail": true,
      "LeadId": 1,
      "PhoneCall": {
        "Id": 1,
        "ExternalId": "sample string 2",
        "RecordingId": "sample string 3",
        "CallInit": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "CallStart": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "CallEnd": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "FromUserId": 1,
        "FromUserName": "sample string 4",
        "FromUserFirstName": "sample string 5",
        "FromUserMiddleName": "sample string 6",
        "ToUserId": 1,
        "ToUserName": "sample string 7",
        "ToUserFirstName": "sample string 8",
        "ToUserMiddleName": "sample string 9",
        "FromClientId": 1,
        "FromClientName": "sample string 10",
        "FromClientFirstName": "sample string 11",
        "FromClientMiddleName": "sample string 12",
        "ToClientId": 1,
        "ToClientName": "sample string 13",
        "ToClientFirstName": "sample string 14",
        "ToClientMiddleName": "sample string 15",
        "LeadId": 1,
        "LeadName": "sample string 16",
        "FromNumber": "sample string 17",
        "ToNumber": "sample string 18",
        "DisconnectedReason": 1,
        "PreviousCallId": 1,
        "PreviousCallExternalId": "sample string 19",
        "FromPartnerId": 1,
        "ToPartnerId": 1,
        "ToPartnerName": "sample string 20",
        "FromPartnerName": "sample string 21",
        "ExternalNumber": "sample string 22",
        "CalledNumbers": [
          "sample string 1",
          "sample string 2"
        ],
        "Tags": [
          {
            "EntityId": 1,
            "EntityTypeId": 2,
            "Name": "sample string 3",
            "TagId": 4
          },
          {
            "EntityId": 1,
            "EntityTypeId": 2,
            "Name": "sample string 3",
            "TagId": 4
          }
        ]
      }
    }
  ],
  "RedirectUrl": "sample string 1",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:20:24.1793108+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<InsertAppealResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Lead.Contract">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 1</RedirectUrl>
  <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
    <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:20:24.1793108+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <Appeals xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Appeal.Contract">
    <d2p1:AppealItemData>
      <d2p1:AppealTypeId>2</d2p1:AppealTypeId>
      <d2p1:AppealTypeName>sample string 3</d2p1:AppealTypeName>
      <d2p1:ClientId>1</d2p1:ClientId>
      <d2p1:ClientName>sample string 4</d2p1:ClientName>
      <d2p1:Comment>sample string 6</d2p1:Comment>
      <d2p1:ContactInfo>sample string 9</d2p1:ContactInfo>
      <d2p1:CreateDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:CreateDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEdit>true</d2p1:IsEdit>
      <d2p1:IsFromClient>true</d2p1:IsFromClient>
      <d2p1:IsHaveSentMail>true</d2p1:IsHaveSentMail>
      <d2p1:IsSendEmail>true</d2p1:IsSendEmail>
      <d2p1:IsUpdateClientEmail>true</d2p1:IsUpdateClientEmail>
      <d2p1:LeadId>1</d2p1:LeadId>
      <d2p1:Text>sample string 5</d2p1:Text>
      <d2p1:UserId>1</d2p1:UserId>
      <d2p1:UserName>sample string 7</d2p1:UserName>
    </d2p1:AppealItemData>
    <d2p1:AppealItemData>
      <d2p1:AppealTypeId>2</d2p1:AppealTypeId>
      <d2p1:AppealTypeName>sample string 3</d2p1:AppealTypeName>
      <d2p1:ClientId>1</d2p1:ClientId>
      <d2p1:ClientName>sample string 4</d2p1:ClientName>
      <d2p1:Comment>sample string 6</d2p1:Comment>
      <d2p1:ContactInfo>sample string 9</d2p1:ContactInfo>
      <d2p1:CreateDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:CreateDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEdit>true</d2p1:IsEdit>
      <d2p1:IsFromClient>true</d2p1:IsFromClient>
      <d2p1:IsHaveSentMail>true</d2p1:IsHaveSentMail>
      <d2p1:IsSendEmail>true</d2p1:IsSendEmail>
      <d2p1:IsUpdateClientEmail>true</d2p1:IsUpdateClientEmail>
      <d2p1:LeadId>1</d2p1:LeadId>
      <d2p1:Text>sample string 5</d2p1:Text>
      <d2p1:UserId>1</d2p1:UserId>
      <d2p1:UserName>sample string 7</d2p1:UserName>
    </d2p1:AppealItemData>
  </Appeals>
</InsertAppealResponse>