POST api/SubmitWorkOrder

Request Information

URI Parameters

None.

Body Parameters

WorkOrderViewModel
NameDescriptionTypeAdditional information
CoopName

string

None.

DateSubmitted

string

None.

RequestedBy

string

None.

Unit

string

None.

Phone

string

None.

Email

string

None.

AlternateContact

string

None.

AlternateContactUnit

string

None.

AlternateContactPhone

string

None.

ServiceRequired

string

None.

Notes

string

None.

Permission

boolean

None.

Arrangements

string

None.

SpecialRequirements

string

None.

ReCaptchaResponse

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CoopName": "sample string 1",
  "DateSubmitted": "sample string 2",
  "RequestedBy": "sample string 3",
  "Unit": "sample string 4",
  "Phone": "sample string 5",
  "Email": "sample string 6",
  "AlternateContact": "sample string 7",
  "AlternateContactUnit": "sample string 8",
  "AlternateContactPhone": "sample string 9",
  "ServiceRequired": "sample string 10",
  "Notes": "sample string 11",
  "Permission": true,
  "Arrangements": "sample string 13",
  "SpecialRequirements": "sample string 14",
  "ReCaptchaResponse": "sample string 15"
}

application/xml, text/xml

Sample:
<WorkOrderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/COHOServices.Models">
  <AlternateContact>sample string 7</AlternateContact>
  <AlternateContactPhone>sample string 9</AlternateContactPhone>
  <AlternateContactUnit>sample string 8</AlternateContactUnit>
  <Arrangements>sample string 13</Arrangements>
  <CoopName>sample string 1</CoopName>
  <DateSubmitted>sample string 2</DateSubmitted>
  <Email>sample string 6</Email>
  <Notes>sample string 11</Notes>
  <Permission>true</Permission>
  <Phone>sample string 5</Phone>
  <ReCaptchaResponse>sample string 15</ReCaptchaResponse>
  <RequestedBy>sample string 3</RequestedBy>
  <ServiceRequired>sample string 10</ServiceRequired>
  <SpecialRequirements>sample string 14</SpecialRequirements>
  <Unit>sample string 4</Unit>
</WorkOrderViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.