POST SetCachePageDataToRedish?UniqueId={UniqueId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UniqueId

string

Required

Body Parameters

CachePage
NameDescriptionTypeAdditional information
Header

CacheHeader

None.

Segment

Collection of CacheSegmentDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "Header": {
    "PropertyName": "sample string 1",
    "LOS": 2,
    "Guest": 3,
    "CheckInDate": "2025-04-28T15:59:06.801192+00:00"
  },
  "Segment": [
    {
      "SegmentId": "sample string 1",
      "Channel": "sample string 2",
      "Status": "sample string 3",
      "ShopDateTime": "sample string 4"
    },
    {
      "SegmentId": "sample string 1",
      "Channel": "sample string 2",
      "Status": "sample string 3",
      "ShopDateTime": "sample string 4"
    }
  ]
}

text/html

Sample:
{"Header":{"PropertyName":"sample string 1","LOS":2,"Guest":3,"CheckInDate":"2025-04-28T15:59:06.801192+00:00"},"Segment":[{"SegmentId":"sample string 1","Channel":"sample string 2","Status":"sample string 3","ShopDateTime":"sample string 4"},{"SegmentId":"sample string 1","Channel":"sample string 2","Status":"sample string 3","ShopDateTime":"sample string 4"}]}

application/xml, text/xml

Sample:
<CachePage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Common">
  <Header>
    <CheckInDate>2025-04-28T15:59:06.801192+00:00</CheckInDate>
    <Guest>3</Guest>
    <LOS>2</LOS>
    <PropertyName>sample string 1</PropertyName>
  </Header>
  <Segment>
    <CacheSegmentDetails>
      <Channel>sample string 2</Channel>
      <SegmentId>sample string 1</SegmentId>
      <ShopDateTime>sample string 4</ShopDateTime>
      <Status>sample string 3</Status>
    </CacheSegmentDetails>
    <CacheSegmentDetails>
      <Channel>sample string 2</Channel>
      <SegmentId>sample string 1</SegmentId>
      <ShopDateTime>sample string 4</ShopDateTime>
      <Status>sample string 3</Status>
    </CacheSegmentDetails>
  </Segment>
</CachePage>

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

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>