POST api/v1/suggestioncomplaint

Request Information

URI Parameters

None.

Body Parameters

SuggestionComplaintRequest
NameDescriptionTypeAdditional information
name

string

None.

email

string

None.

phone

string

None.

subject

string

None.

bodyComment

string

None.

clientCard

string

None.

isClient

boolean

None.

providerID

globally unique identifier

None.

providerName

string

None.

consents

PersonalConsent

None.

files

Collection of SuggestionComplaintFile

None.

Request Formats

application/json, text/json

Sample:
{
  "files": [
    {
      "fileName": "sample string 1",
      "fileContent": "sample string 2",
      "contentType": "sample string 3"
    },
    {
      "fileName": "sample string 1",
      "fileContent": "sample string 2",
      "contentType": "sample string 3"
    }
  ],
  "name": "sample string 1",
  "email": "sample string 2",
  "phone": "sample string 3",
  "subject": "sample string 4",
  "bodyComment": "sample string 5",
  "clientCard": "sample string 6",
  "isClient": true,
  "providerID": "a9aee20e-cba9-44c5-97e9-d172977d5acd",
  "providerName": "sample string 9",
  "consents": {
    "level": [
      1,
      2
    ],
    "date": "2024-05-17T02:45:40.1891451+01:00",
    "evidences": [
      {
        "content": "sample string 2",
        "type": "sample string 3",
        "data": "sample string 4"
      },
      {
        "content": "sample string 2",
        "type": "sample string 3",
        "data": "sample string 4"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<SuggestionComplaintRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebsiteAPI.Model">
  <BodyComment>sample string 5</BodyComment>
  <ClientCard>sample string 6</ClientCard>
  <Consents>
    <Date>2024-05-17T02:45:40.1891451+01:00</Date>
    <Evidences>
      <Evidence>
        <Content>sample string 2</Content>
        <Data>sample string 4</Data>
        <Type>sample string 3</Type>
      </Evidence>
      <Evidence>
        <Content>sample string 2</Content>
        <Data>sample string 4</Data>
        <Type>sample string 3</Type>
      </Evidence>
    </Evidences>
    <Level xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Level>
  </Consents>
  <Email>sample string 2</Email>
  <Files>
    <SuggestionComplaintFile>
      <ContentType>sample string 3</ContentType>
      <FileContent>sample string 2</FileContent>
      <FileName>sample string 1</FileName>
    </SuggestionComplaintFile>
    <SuggestionComplaintFile>
      <ContentType>sample string 3</ContentType>
      <FileContent>sample string 2</FileContent>
      <FileName>sample string 1</FileName>
    </SuggestionComplaintFile>
  </Files>
  <IsClient>true</IsClient>
  <Name>sample string 1</Name>
  <Phone>sample string 3</Phone>
  <ProviderID>a9aee20e-cba9-44c5-97e9-d172977d5acd</ProviderID>
  <ProviderName>sample string 9</ProviderName>
  <Subject>sample string 4</Subject>
</SuggestionComplaintRequest>

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

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.