POST api/v1/ServiceRequests

Request Information

URI Parameters

None.

Body Parameters

CreateServiceRequestModel
NameDescriptionTypeAdditional information
TargetContactID

integer

None.

DeviceID

integer

None.

CreatedByContactID

integer

None.

RequestType

string

None.

RequestedStartDate

date

None.

RequestedEndDate

date

None.

RequestDueDate

date

None.

ShortDescription

string

None.

LongDescription

string

None.

NewContentInHTML

boolean

None.

CustomFields

Collection of CustomField

None.

Request Formats

application/json, text/json

Sample:
{
  "TargetContactID": 1,
  "DeviceID": 2,
  "CreatedByContactID": 3,
  "RequestType": "sample string 4",
  "RequestedStartDate": "2026-11-12T13:39:20.3755555-05:00",
  "RequestedEndDate": "2026-11-12T13:39:20.3755555-05:00",
  "RequestDueDate": "2026-11-12T13:39:20.3755555-05:00",
  "ShortDescription": "sample string 8",
  "LongDescription": "sample string 9",
  "NewContentInHTML": true,
  "CustomFields": [
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    },
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    }
  ]
}

text/xml

Sample:
<CreateServiceRequestModel 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 9</LongDescription>
  <NewContentInHTML>true</NewContentInHTML>
  <ShortDescription>sample string 8</ShortDescription>
  <RequestDueDate>2026-11-12T13:39:20.3755555-05:00</RequestDueDate>
  <RequestType>sample string 4</RequestType>
  <RequestedEndDate>2026-11-12T13:39:20.3755555-05:00</RequestedEndDate>
  <RequestedStartDate>2026-11-12T13:39:20.3755555-05:00</RequestedStartDate>
  <CreatedByContactID>3</CreatedByContactID>
  <DeviceID>2</DeviceID>
  <TargetContactID>1</TargetContactID>
</CreateServiceRequestModel>

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

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.