POST UpdateAirBnB

Request Information

URI Parameters

None.

Body Parameters

UpdateAirBnBData
NameDescriptionTypeAdditional information
SID

integer

None.

Userid

integer

None.

NoOfGuest

integer

None.

SelectedProducts

Collection of Product

None.

SelectedNeighbourHoods

Collection of NeighbourHood

None.

Request Formats

application/json, text/json

Sample:
{
  "SID": 1,
  "Userid": 2,
  "NoOfGuest": 3,
  "SelectedProducts": [
    {
      "SID": 1,
      "ProductId": 2,
      "StarRating": 3,
      "ProductName": "sample string 4",
      "CreatedOn": "2025-04-28T16:13:34.4675691+00:00",
      "UpdatedOn": "2025-04-28T16:13:34.4675691+00:00",
      "Address1": "sample string 7",
      "Address2": "sample string 8",
      "Country": "sample string 9",
      "City": "sample string 10"
    },
    {
      "SID": 1,
      "ProductId": 2,
      "StarRating": 3,
      "ProductName": "sample string 4",
      "CreatedOn": "2025-04-28T16:13:34.4675691+00:00",
      "UpdatedOn": "2025-04-28T16:13:34.4675691+00:00",
      "Address1": "sample string 7",
      "Address2": "sample string 8",
      "Country": "sample string 9",
      "City": "sample string 10"
    }
  ],
  "SelectedNeighbourHoods": [
    {
      "Id": 1,
      "SID": 2,
      "NeighbourID": 3,
      "Name": "sample string 4",
      "CreatedOn": "2025-04-28T16:13:34.4675691+00:00"
    },
    {
      "Id": 1,
      "SID": 2,
      "NeighbourID": 3,
      "Name": "sample string 4",
      "CreatedOn": "2025-04-28T16:13:34.4675691+00:00"
    }
  ]
}

text/html

Sample:
{"SID":1,"Userid":2,"NoOfGuest":3,"SelectedProducts":[{"SID":1,"ProductId":2,"StarRating":3,"ProductName":"sample string 4","CreatedOn":"2025-04-28T16:13:34.4675691+00:00","UpdatedOn":"2025-04-28T16:13:34.4675691+00:00","Address1":"sample string 7","Address2":"sample string 8","Country":"sample string 9","City":"sample string 10"},{"SID":1,"ProductId":2,"StarRating":3,"ProductName":"sample string 4","CreatedOn":"2025-04-28T16:13:34.4675691+00:00","UpdatedOn":"2025-04-28T16:13:34.4675691+00:00","Address1":"sample string 7","Address2":"sample string 8","Country":"sample string 9","City":"sample string 10"}],"SelectedNeighbourHoods":[{"Id":1,"SID":2,"NeighbourID":3,"Name":"sample string 4","CreatedOn":"2025-04-28T16:13:34.4675691+00:00"},{"Id":1,"SID":2,"NeighbourID":3,"Name":"sample string 4","CreatedOn":"2025-04-28T16:13:34.4675691+00:00"}]}

application/xml, text/xml

Sample:
<UpdateAirBnBData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Settings">
  <NoOfGuest>3</NoOfGuest>
  <SID>1</SID>
  <SelectedNeighbourHoods>
    <NeighbourHood>
      <CreatedOn>2025-04-28T16:13:34.4675691+00:00</CreatedOn>
      <Id>1</Id>
      <Name>sample string 4</Name>
      <NeighbourID>3</NeighbourID>
      <SID>2</SID>
    </NeighbourHood>
    <NeighbourHood>
      <CreatedOn>2025-04-28T16:13:34.4675691+00:00</CreatedOn>
      <Id>1</Id>
      <Name>sample string 4</Name>
      <NeighbourID>3</NeighbourID>
      <SID>2</SID>
    </NeighbourHood>
  </SelectedNeighbourHoods>
  <SelectedProducts>
    <Product>
      <Address1>sample string 7</Address1>
      <Address2>sample string 8</Address2>
      <City>sample string 10</City>
      <Country>sample string 9</Country>
      <CreatedOn>2025-04-28T16:13:34.4675691+00:00</CreatedOn>
      <ProductId>2</ProductId>
      <ProductName>sample string 4</ProductName>
      <SID>1</SID>
      <StarRating>3</StarRating>
      <UpdatedOn>2025-04-28T16:13:34.4675691+00:00</UpdatedOn>
    </Product>
    <Product>
      <Address1>sample string 7</Address1>
      <Address2>sample string 8</Address2>
      <City>sample string 10</City>
      <Country>sample string 9</Country>
      <CreatedOn>2025-04-28T16:13:34.4675691+00:00</CreatedOn>
      <ProductId>2</ProductId>
      <ProductName>sample string 4</ProductName>
      <SID>1</SID>
      <StarRating>3</StarRating>
      <UpdatedOn>2025-04-28T16:13:34.4675691+00:00</UpdatedOn>
    </Product>
  </SelectedProducts>
  <Userid>2</Userid>
</UpdateAirBnBData>

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

Response Information

Resource Description

ResponseOfBoolean
NameDescriptionTypeAdditional information
Message

string

None.

Status

boolean

None.

Body

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": true,
  "Body": true
}

text/html

Sample:
{"Message":"sample string 1","Status":true,"Body":true}

application/xml, text/xml

Sample:
<ResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Common">
  <Body>true</Body>
  <Message>sample string 1</Message>
  <Status>true</Status>
</ResponseOfboolean>