POST 1.0/website/maintenancerequests

Description

Creates a new MaintenanceRequest

URI Parameters

None.

Name Description Type Additional information
BranchID

integer

None.

TypeID

integer

None.

Notes

string

None.

Contact

Details

None.

PropertyAddressStreet

string

None.

PropertyAddressPostCode

string

None.

Images

Collection of Image

None.

application/json, text/json

Sample:
{
  "branchID": 1,
  "typeID": 2,
  "notes": "sample string 3",
  "contact": {
    "branchID": 1,
    "lastName": "sample string 2",
    "firstNames": "sample string 3",
    "title": "sample string 4",
    "email": "sample string 5",
    "telephone": "sample string 6"
  },
  "propertyAddressStreet": "sample string 4",
  "propertyAddressPostCode": "sample string 5",
  "images": [
    {
      "name": "sample string 1",
      "data": "QEA="
    },
    {
      "name": "sample string 1",
      "data": "QEA="
    }
  ]
}

application/xml, text/xml

Sample:
<MaintenanceRequestDetails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BranchID>1</BranchID>
  <TypeID>2</TypeID>
  <Notes>sample string 3</Notes>
  <Contact>
    <BranchID>1</BranchID>
    <LastName>sample string 2</LastName>
    <FirstNames>sample string 3</FirstNames>
    <Title>sample string 4</Title>
    <Email>sample string 5</Email>
    <Telephone>sample string 6</Telephone>
  </Contact>
  <PropertyAddressStreet>sample string 4</PropertyAddressStreet>
  <PropertyAddressPostCode>sample string 5</PropertyAddressPostCode>
  <Images>
    <Image>
      <Name>sample string 1</Name>
      <Data>QEA=</Data>
    </Image>
    <Image>
      <Name>sample string 1</Name>
      <Data>QEA=</Data>
    </Image>
  </Images>
</MaintenanceRequestDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

The ID of the created Maintenance Request

integer

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int>1</int>