POST api/support/savecomplaint

Request Information

URI Parameters

None.

Body Parameters

SaveComplaintDTO
NameDescriptionTypeAdditional information
Description

string

Required

ComplainType

ComplainClientApp

None.

FileAttachment

FileAttachment

None.

Request Formats

application/json, text/json

Sample:
{
  "description": "sample string 1",
  "complainType": 0,
  "fileAttachment": {
    "data": "QEA=",
    "name": "sample string 1",
    "type": "sample string 2",
    "length": 3
  }
}

text/html

Sample:
{"description":"sample string 1","complainType":0,"fileAttachment":{"data":"QEA=","name":"sample string 1","type":"sample string 2","length":3}}

text/xml

Sample:
<SaveComplaintDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models.DTOs.Examination">
  <ComplainType>NotSet</ComplainType>
  <Description>sample string 1</Description>
  <FileAttachment xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models">
    <d2p1:Data>QEA=</d2p1:Data>
    <d2p1:Length>3</d2p1:Length>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:Type>sample string 2</d2p1:Type>
  </FileAttachment>
</SaveComplaintDTO>

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 'SaveComplaintDTO'.

Response Information

Resource Description

ServiceResponseOfString
NameDescriptionTypeAdditional information
HttpStatusCode

HttpStatusCode

None.

ResponseMessage

string

None.

HasError

boolean

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "httpStatusCode": 100,
  "responseMessage": "sample string 1",
  "hasError": true,
  "data": "sample string 3"
}

text/html

Sample:
{"httpStatusCode":100,"responseMessage":"sample string 1","hasError":true,"data":"sample string 3"}

text/xml

Sample:
<ServiceResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models">
  <Data>sample string 3</Data>
  <HasError>true</HasError>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResponseMessage>sample string 1</ResponseMessage>
</ServiceResponseOfstring>