POST api/Properties/PropertyMaintainanceRolePrefSave

Request Information

URI Parameters

None.

Body Parameters

PropertyMaintainanceRolePrefModel
NameDescriptionTypeAdditional information
LocationID

integer

None.

PropertyCode

string

None.

IsPreferenceSave

boolean

None.

MaintenanceRolePreferenceArr

Collection of MaintenanceRolePreferenceArrItem

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

LogId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationID": 1,
  "PropertyCode": "sample string 2",
  "IsPreferenceSave": true,
  "MaintenanceRolePreferenceArr": [
    {
      "MaintenanceRolePreferenceID": 1,
      "LocationID": 1,
      "MaintenanceRolePreferenceOptionID": 2,
      "MaintenanceRolePreferenceOptiontxt": "sample string 3",
      "MaintenanceRoleCareTakersArr": [
        {
          "DBNo": 1,
          "AppNo": 1,
          "IsActive": true,
          "IsDeleted": true,
          "MaintenanceRolePrefCareTakerID": 1,
          "MaintenanceRolePreferenceOptionID": 1,
          "ProfessionID": 1,
          "ProfessionTempID": 1,
          "UserProfileID": 1,
          "TempUserProfileID": 1,
          "Name": "sample string 1",
          "IsCareTakerExists": true,
          "CreatedBy": 3,
          "UpadatedBy": 4,
          "LabelToShow": "sample string 5",
          "MaintenanceRoleRelationshipType": "sample string 6",
          "Action": "sample string 7"
        },
        {
          "DBNo": 1,
          "AppNo": 1,
          "IsActive": true,
          "IsDeleted": true,
          "MaintenanceRolePrefCareTakerID": 1,
          "MaintenanceRolePreferenceOptionID": 1,
          "ProfessionID": 1,
          "ProfessionTempID": 1,
          "UserProfileID": 1,
          "TempUserProfileID": 1,
          "Name": "sample string 1",
          "IsCareTakerExists": true,
          "CreatedBy": 3,
          "UpadatedBy": 4,
          "LabelToShow": "sample string 5",
          "MaintenanceRoleRelationshipType": "sample string 6",
          "Action": "sample string 7"
        }
      ],
      "IsActive": true,
      "IsDeleted": true,
      "CreatedBy": 6,
      "UpdatedBy": 7,
      "Action": "sample string 8",
      "DBNo": 1,
      "AppNo": 1,
      "LogId": 1
    },
    {
      "MaintenanceRolePreferenceID": 1,
      "LocationID": 1,
      "MaintenanceRolePreferenceOptionID": 2,
      "MaintenanceRolePreferenceOptiontxt": "sample string 3",
      "MaintenanceRoleCareTakersArr": [
        {
          "DBNo": 1,
          "AppNo": 1,
          "IsActive": true,
          "IsDeleted": true,
          "MaintenanceRolePrefCareTakerID": 1,
          "MaintenanceRolePreferenceOptionID": 1,
          "ProfessionID": 1,
          "ProfessionTempID": 1,
          "UserProfileID": 1,
          "TempUserProfileID": 1,
          "Name": "sample string 1",
          "IsCareTakerExists": true,
          "CreatedBy": 3,
          "UpadatedBy": 4,
          "LabelToShow": "sample string 5",
          "MaintenanceRoleRelationshipType": "sample string 6",
          "Action": "sample string 7"
        },
        {
          "DBNo": 1,
          "AppNo": 1,
          "IsActive": true,
          "IsDeleted": true,
          "MaintenanceRolePrefCareTakerID": 1,
          "MaintenanceRolePreferenceOptionID": 1,
          "ProfessionID": 1,
          "ProfessionTempID": 1,
          "UserProfileID": 1,
          "TempUserProfileID": 1,
          "Name": "sample string 1",
          "IsCareTakerExists": true,
          "CreatedBy": 3,
          "UpadatedBy": 4,
          "LabelToShow": "sample string 5",
          "MaintenanceRoleRelationshipType": "sample string 6",
          "Action": "sample string 7"
        }
      ],
      "IsActive": true,
      "IsDeleted": true,
      "CreatedBy": 6,
      "UpdatedBy": 7,
      "Action": "sample string 8",
      "DBNo": 1,
      "AppNo": 1,
      "LogId": 1
    }
  ],
  "IsActive": true,
  "IsDeleted": true,
  "CreatedBy": 6,
  "UpdatedBy": 7,
  "LogId": 1
}

application/xml, text/xml

Sample:
<PropertyMaintainanceRolePrefModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessAccessLayer.Model">
  <CreatedBy>6</CreatedBy>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <IsPreferenceSave>true</IsPreferenceSave>
  <LocationID>1</LocationID>
  <LogId>1</LogId>
  <MaintenanceRolePreferenceArr>
    <MaintenanceRolePreferenceArrItem>
      <AppNo>1</AppNo>
      <CreatedBy>6</CreatedBy>
      <DBNo>1</DBNo>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <LocationID>1</LocationID>
      <LogId>1</LogId>
      <MaintenanceRoleCareTakersArr>
        <MaintenanceRoleCareTaker>
          <Action>sample string 7</Action>
          <AppNo>1</AppNo>
          <CreatedBy>3</CreatedBy>
          <DBNo>1</DBNo>
          <IsActive>true</IsActive>
          <IsCareTakerExists>true</IsCareTakerExists>
          <IsDeleted>true</IsDeleted>
          <LabelToShow>sample string 5</LabelToShow>
          <MaintenanceRolePrefCareTakerID>1</MaintenanceRolePrefCareTakerID>
          <MaintenanceRolePreferenceOptionID>1</MaintenanceRolePreferenceOptionID>
          <MaintenanceRoleRelationshipType>sample string 6</MaintenanceRoleRelationshipType>
          <Name>sample string 1</Name>
          <ProfessionID>1</ProfessionID>
          <ProfessionTempID>1</ProfessionTempID>
          <TempUserProfileID>1</TempUserProfileID>
          <UpadatedBy>4</UpadatedBy>
          <UserProfileID>1</UserProfileID>
        </MaintenanceRoleCareTaker>
        <MaintenanceRoleCareTaker>
          <Action>sample string 7</Action>
          <AppNo>1</AppNo>
          <CreatedBy>3</CreatedBy>
          <DBNo>1</DBNo>
          <IsActive>true</IsActive>
          <IsCareTakerExists>true</IsCareTakerExists>
          <IsDeleted>true</IsDeleted>
          <LabelToShow>sample string 5</LabelToShow>
          <MaintenanceRolePrefCareTakerID>1</MaintenanceRolePrefCareTakerID>
          <MaintenanceRolePreferenceOptionID>1</MaintenanceRolePreferenceOptionID>
          <MaintenanceRoleRelationshipType>sample string 6</MaintenanceRoleRelationshipType>
          <Name>sample string 1</Name>
          <ProfessionID>1</ProfessionID>
          <ProfessionTempID>1</ProfessionTempID>
          <TempUserProfileID>1</TempUserProfileID>
          <UpadatedBy>4</UpadatedBy>
          <UserProfileID>1</UserProfileID>
        </MaintenanceRoleCareTaker>
      </MaintenanceRoleCareTakersArr>
      <MaintenanceRolePreferenceID>1</MaintenanceRolePreferenceID>
      <MaintenanceRolePreferenceOptionID>2</MaintenanceRolePreferenceOptionID>
      <MaintenanceRolePreferenceOptiontxt>sample string 3</MaintenanceRolePreferenceOptiontxt>
      <UpdatedBy>7</UpdatedBy>
    </MaintenanceRolePreferenceArrItem>
    <MaintenanceRolePreferenceArrItem>
      <AppNo>1</AppNo>
      <CreatedBy>6</CreatedBy>
      <DBNo>1</DBNo>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <LocationID>1</LocationID>
      <LogId>1</LogId>
      <MaintenanceRoleCareTakersArr>
        <MaintenanceRoleCareTaker>
          <Action>sample string 7</Action>
          <AppNo>1</AppNo>
          <CreatedBy>3</CreatedBy>
          <DBNo>1</DBNo>
          <IsActive>true</IsActive>
          <IsCareTakerExists>true</IsCareTakerExists>
          <IsDeleted>true</IsDeleted>
          <LabelToShow>sample string 5</LabelToShow>
          <MaintenanceRolePrefCareTakerID>1</MaintenanceRolePrefCareTakerID>
          <MaintenanceRolePreferenceOptionID>1</MaintenanceRolePreferenceOptionID>
          <MaintenanceRoleRelationshipType>sample string 6</MaintenanceRoleRelationshipType>
          <Name>sample string 1</Name>
          <ProfessionID>1</ProfessionID>
          <ProfessionTempID>1</ProfessionTempID>
          <TempUserProfileID>1</TempUserProfileID>
          <UpadatedBy>4</UpadatedBy>
          <UserProfileID>1</UserProfileID>
        </MaintenanceRoleCareTaker>
        <MaintenanceRoleCareTaker>
          <Action>sample string 7</Action>
          <AppNo>1</AppNo>
          <CreatedBy>3</CreatedBy>
          <DBNo>1</DBNo>
          <IsActive>true</IsActive>
          <IsCareTakerExists>true</IsCareTakerExists>
          <IsDeleted>true</IsDeleted>
          <LabelToShow>sample string 5</LabelToShow>
          <MaintenanceRolePrefCareTakerID>1</MaintenanceRolePrefCareTakerID>
          <MaintenanceRolePreferenceOptionID>1</MaintenanceRolePreferenceOptionID>
          <MaintenanceRoleRelationshipType>sample string 6</MaintenanceRoleRelationshipType>
          <Name>sample string 1</Name>
          <ProfessionID>1</ProfessionID>
          <ProfessionTempID>1</ProfessionTempID>
          <TempUserProfileID>1</TempUserProfileID>
          <UpadatedBy>4</UpadatedBy>
          <UserProfileID>1</UserProfileID>
        </MaintenanceRoleCareTaker>
      </MaintenanceRoleCareTakersArr>
      <MaintenanceRolePreferenceID>1</MaintenanceRolePreferenceID>
      <MaintenanceRolePreferenceOptionID>2</MaintenanceRolePreferenceOptionID>
      <MaintenanceRolePreferenceOptiontxt>sample string 3</MaintenanceRolePreferenceOptiontxt>
      <UpdatedBy>7</UpdatedBy>
    </MaintenanceRolePreferenceArrItem>
  </MaintenanceRolePreferenceArr>
  <PropertyCode>sample string 2</PropertyCode>
  <UpdatedBy>7</UpdatedBy>
</PropertyMaintainanceRolePrefModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
Status

ResultStatus

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 100,
  "Message": "sample string 1",
  "Data": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessAccessLayer.Generics">
  <Data />
  <Message>sample string 1</Message>
  <Status>Success</Status>
</Result>