POST api/LogTicket/Addtachment

Request Information

URI Parameters

None.

Body Parameters

Attachfile_Listdetail
NameDescriptionTypeAdditional information
data

Collection of Attachfile

None.

Request Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "fileid": "sample string 1",
      "type": "sample string 2",
      "filename": "sample string 3",
      "file": "QEA=",
      "extention": "sample string 4",
      "url": "sample string 5"
    },
    {
      "fileid": "sample string 1",
      "type": "sample string 2",
      "filename": "sample string 3",
      "file": "QEA=",
      "extention": "sample string 4",
      "url": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<Attachfile_Listdetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITServiceDeskWebapi.Models">
  <data>
    <Attachfile>
      <extention>sample string 4</extention>
      <file>QEA=</file>
      <fileid>sample string 1</fileid>
      <filename>sample string 3</filename>
      <type>sample string 2</type>
      <url>sample string 5</url>
    </Attachfile>
    <Attachfile>
      <extention>sample string 4</extention>
      <file>QEA=</file>
      <fileid>sample string 1</fileid>
      <filename>sample string 3</filename>
      <type>sample string 2</type>
      <url>sample string 5</url>
    </Attachfile>
  </data>
</Attachfile_Listdetail>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.