POST _api/CaseMgt/NewCase

Request Information

URI Parameters

None.

Body Parameters

NewCaseParam
NameDescriptionTypeAdditional information
Createdby

string

Required

Category

integer

Required

Title

string

Required

Details

string

Required

SupportingDocuments

Collection of SupportingDocs

None.

Request Formats

application/json, text/json

Sample:
{
  "Createdby": "sample string 1",
  "Category": 1,
  "Title": "sample string 2",
  "Details": "sample string 3",
  "SupportingDocuments": [
    {
      "Base64": "sample string 1",
      "FileType": "sample string 2",
      "DocumentName": "sample string 3",
      "Uploadedby": "sample string 4"
    },
    {
      "Base64": "sample string 1",
      "FileType": "sample string 2",
      "DocumentName": "sample string 3",
      "Uploadedby": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<NewCaseParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceDesk.Models">
  <Category>1</Category>
  <Createdby>sample string 1</Createdby>
  <Details>sample string 3</Details>
  <SupportingDocuments>
    <SupportingDocs>
      <Base64>sample string 1</Base64>
      <DocumentName>sample string 3</DocumentName>
      <FileType>sample string 2</FileType>
      <Uploadedby>sample string 4</Uploadedby>
    </SupportingDocs>
    <SupportingDocs>
      <Base64>sample string 1</Base64>
      <DocumentName>sample string 3</DocumentName>
      <FileType>sample string 2</FileType>
      <Uploadedby>sample string 4</Uploadedby>
    </SupportingDocs>
  </SupportingDocuments>
  <Title>sample string 2</Title>
</NewCaseParam>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.