POST api/VOC/InsertComplaint2

Request Information

URI Parameters

None.

Body Parameters

RequestInsertComplaint
NameDescriptionTypeAdditional information
UserId

string

None.

TagId

string

None.

ProvinceId

string

None.

PeaCode

string

None.

PeaName

string

None.

AccidentLocation

string

None.

CaNo

string

None.

ComplaintTypeId

string

None.

ComplaintTypeName

string

None.

ComplaintSubtypeId

string

None.

ComplaintSubtypeName

string

None.

Detail

string

None.

Permission

string

None.

Files

Collection of FilesModel

None.

Files2

Collection of ComplaintFile

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "TagId": "sample string 2",
  "ProvinceId": "sample string 3",
  "PeaCode": "sample string 4",
  "PeaName": "sample string 5",
  "AccidentLocation": "sample string 6",
  "CaNo": "sample string 7",
  "ComplaintTypeId": "sample string 8",
  "ComplaintTypeName": "sample string 9",
  "ComplaintSubtypeId": "sample string 10",
  "ComplaintSubtypeName": "sample string 11",
  "Detail": "sample string 12",
  "Permission": "sample string 13",
  "Files": [
    {
      "Description": "sample string 1",
      "FileContent": "sample string 2",
      "FileName": "sample string 3",
      "MimeType": "sample string 4",
      "ImageBase64": "sample string 5"
    },
    {
      "Description": "sample string 1",
      "FileContent": "sample string 2",
      "FileName": "sample string 3",
      "MimeType": "sample string 4",
      "ImageBase64": "sample string 5"
    }
  ],
  "Files2": [
    {
      "fileContentField": "QEA=",
      "fileNameField": "sample string 1",
      "mimeTypeField": "sample string 2",
      "descriptionField": "sample string 3"
    },
    {
      "fileContentField": "QEA=",
      "fileNameField": "sample string 1",
      "mimeTypeField": "sample string 2",
      "descriptionField": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<VOCModels.RequestInsertComplaint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.VOCModels">
  <AccidentLocation>sample string 6</AccidentLocation>
  <CaNo>sample string 7</CaNo>
  <ComplaintSubtypeId>sample string 10</ComplaintSubtypeId>
  <ComplaintSubtypeName>sample string 11</ComplaintSubtypeName>
  <ComplaintTypeId>sample string 8</ComplaintTypeId>
  <ComplaintTypeName>sample string 9</ComplaintTypeName>
  <Detail>sample string 12</Detail>
  <Files>
    <VOCModels.FilesModel>
      <Description>sample string 1</Description>
      <FileContent>sample string 2</FileContent>
      <FileName>sample string 3</FileName>
      <ImageBase64>sample string 5</ImageBase64>
      <MimeType>sample string 4</MimeType>
    </VOCModels.FilesModel>
    <VOCModels.FilesModel>
      <Description>sample string 1</Description>
      <FileContent>sample string 2</FileContent>
      <FileName>sample string 3</FileName>
      <ImageBase64>sample string 5</ImageBase64>
      <MimeType>sample string 4</MimeType>
    </VOCModels.FilesModel>
  </Files>
  <Files2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.ComplaintPRD">
    <d2p1:ComplaintFile>
      <d2p1:descriptionField>sample string 3</d2p1:descriptionField>
      <d2p1:fileContentField>QEA=</d2p1:fileContentField>
      <d2p1:fileNameField>sample string 1</d2p1:fileNameField>
      <d2p1:mimeTypeField>sample string 2</d2p1:mimeTypeField>
    </d2p1:ComplaintFile>
    <d2p1:ComplaintFile>
      <d2p1:descriptionField>sample string 3</d2p1:descriptionField>
      <d2p1:fileContentField>QEA=</d2p1:fileContentField>
      <d2p1:fileNameField>sample string 1</d2p1:fileNameField>
      <d2p1:mimeTypeField>sample string 2</d2p1:mimeTypeField>
    </d2p1:ComplaintFile>
  </Files2>
  <PeaCode>sample string 4</PeaCode>
  <PeaName>sample string 5</PeaName>
  <Permission>sample string 13</Permission>
  <ProvinceId>sample string 3</ProvinceId>
  <TagId>sample string 2</TagId>
  <UserId>sample string 1</UserId>
</VOCModels.RequestInsertComplaint>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfListOfOfficePeaView
NameDescriptionTypeAdditional information
Data

Collection of OfficePeaView

None.

Status

boolean

None.

ErrorMessage

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "PeaCode": "sample string 1",
      "PeaFullName": "sample string 2",
      "PeaShortName": "sample string 3"
    },
    {
      "PeaCode": "sample string 1",
      "PeaFullName": "sample string 2",
      "PeaShortName": "sample string 3"
    }
  ],
  "Status": true,
  "ErrorMessage": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultModelOfArrayOfVOCModels.OfficePeaViewViargZ6v xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.VOCModels">
    <d2p1:VOCModels.OfficePeaView>
      <d2p1:PeaCode>sample string 1</d2p1:PeaCode>
      <d2p1:PeaFullName>sample string 2</d2p1:PeaFullName>
      <d2p1:PeaShortName>sample string 3</d2p1:PeaShortName>
    </d2p1:VOCModels.OfficePeaView>
    <d2p1:VOCModels.OfficePeaView>
      <d2p1:PeaCode>sample string 1</d2p1:PeaCode>
      <d2p1:PeaFullName>sample string 2</d2p1:PeaFullName>
      <d2p1:PeaShortName>sample string 3</d2p1:PeaShortName>
    </d2p1:VOCModels.OfficePeaView>
  </Data>
  <ErrorMessage>sample string 2</ErrorMessage>
  <Message>sample string 3</Message>
  <Status>true</Status>
</ResultModelOfArrayOfVOCModels.OfficePeaViewViargZ6v>