POST api/v1/Incidents

Request Information

URI Parameters

None.

Body Parameters

CreateIncidentRequestModel
NameDescriptionTypeAdditional information
TargetContactID

integer

None.

TargetDeviceID

integer

None.

CreatedByContactID

integer

None.

IncidentClassID

integer

None.

IncidentPerceivedPriority

string

None.

ShortDescription

string

None.

LongDescription

string

None.

NewContentInHTML

boolean

None.

CustomFields

Collection of CustomField

None.

Request Formats

application/json, text/json

Sample:
{
  "TargetContactID": 1,
  "TargetDeviceID": 2,
  "CreatedByContactID": 3,
  "IncidentClassID": 4,
  "IncidentPerceivedPriority": "sample string 5",
  "ShortDescription": "sample string 6",
  "LongDescription": "sample string 7",
  "NewContentInHTML": true,
  "CustomFields": [
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    },
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    }
  ]
}

text/xml

Sample:
<CreateIncidentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPApiModels">
  <CustomFields>
    <CustomField>
      <FieldLabel>sample string 1</FieldLabel>
      <FieldValue>sample string 2</FieldValue>
    </CustomField>
    <CustomField>
      <FieldLabel>sample string 1</FieldLabel>
      <FieldValue>sample string 2</FieldValue>
    </CustomField>
  </CustomFields>
  <LongDescription>sample string 7</LongDescription>
  <NewContentInHTML>true</NewContentInHTML>
  <ShortDescription>sample string 6</ShortDescription>
  <IncidentClassID>4</IncidentClassID>
  <IncidentPerceivedPriority>sample string 5</IncidentPerceivedPriority>
  <CreatedByContactID>3</CreatedByContactID>
  <TargetContactID>1</TargetContactID>
  <TargetDeviceID>2</TargetDeviceID>
</CreateIncidentRequestModel>

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

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.