POST ops/housing/maintenanceSchedules

Request Information

URI Parameters

None.

Body Parameters

MaintenanceSchedulePOST
NameDescriptionTypeAdditional information
ScheduledDate

date

None.

DateCompleted

date

None.

CompanyName

string

None.

EmployeeName

string

None.

HouseId

integer

None.

MaintenanceTypeId

integer

None.

Description

string

None.

UserUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "scheduledDate": "2024-02-21T07:36:23.283435+02:00",
  "dateCompleted": "2024-02-21T07:36:23.283435+02:00",
  "companyName": "sample string 2",
  "employeeName": "sample string 3",
  "houseId": 4,
  "maintenanceTypeId": 5,
  "description": "sample string 6",
  "userUid": "sample string 7"
}

application/xml, text/xml

Sample:
<MaintenanceSchedulePOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing">
  <CompanyName>sample string 2</CompanyName>
  <DateCompleted>2024-02-21T07:36:23.283435+02:00</DateCompleted>
  <Description>sample string 6</Description>
  <EmployeeName>sample string 3</EmployeeName>
  <HouseId>4</HouseId>
  <MaintenanceTypeId>5</MaintenanceTypeId>
  <ScheduledDate>2024-02-21T07:36:23.283435+02:00</ScheduledDate>
  <UserUid>sample string 7</UserUid>
</MaintenanceSchedulePOST>

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

Response Information

Resource Description

MaintenanceScheduleGET
NameDescriptionTypeAdditional information
Id

integer

None.

ScheduledDate

date

None.

DateCompleted

date

None.

CompanyName

string

None.

EmployeeName

string

None.

HouseId

integer

None.

MaintenanceType

MaintenanceTypeGET

None.

Description

string

None.

Modified

date

None.

Status

Status

None.

ModifiedBy

UserBasicGET

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "scheduledDate": "2024-02-21T07:36:23.283435+02:00",
  "dateCompleted": "2024-02-21T07:36:23.283435+02:00",
  "companyName": "sample string 3",
  "employeeName": "sample string 4",
  "houseId": 5,
  "maintenanceType": {
    "id": 1,
    "description": "sample string 2"
  },
  "description": "sample string 6",
  "modified": "2024-02-21T07:36:23.283435+02:00",
  "status": {
    "id": 1,
    "name": "sample string 2"
  },
  "modifiedBy": {
    "firstName": "sample string 1",
    "id": 2,
    "lastName": "sample string 3",
    "uid": "sample string 4",
    "username": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<MaintenanceScheduleGET xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing">
  <CompanyName>sample string 3</CompanyName>
  <DateCompleted>2024-02-21T07:36:23.283435+02:00</DateCompleted>
  <Description>sample string 6</Description>
  <EmployeeName>sample string 4</EmployeeName>
  <HouseId>5</HouseId>
  <Id>1</Id>
  <MaintenanceType>
    <Description>sample string 2</Description>
    <Id>1</Id>
  </MaintenanceType>
  <Modified>2024-02-21T07:36:23.283435+02:00</Modified>
  <ModifiedBy xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:Id>2</d2p1:Id>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:Uid>sample string 4</d2p1:Uid>
    <d2p1:Username>sample string 5</d2p1:Username>
  </ModifiedBy>
  <ScheduledDate>2024-02-21T07:36:23.283435+02:00</ScheduledDate>
  <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Status>
</MaintenanceScheduleGET>