POST api/Cache/Visitors/CachedAttributes

Adds data to the realtime cache

Request Information

URI Parameters

None.

Body Parameters

Value

Collection of VisitorCacheAttributes
NameDescriptionTypeAdditional information
VisitorID

string

None.

Attributes

Collection of CacheAttribute

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "VisitorID": "sample string 1",
    "Attributes": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  },
  {
    "VisitorID": "sample string 1",
    "Attributes": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfVisitorCacheAttributes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RedPoint.Shared.DatabaseAccess">
  <VisitorCacheAttributes>
    <Attributes>
      <CacheAttribute>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </CacheAttribute>
      <CacheAttribute>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </CacheAttribute>
    </Attributes>
    <VisitorID>sample string 1</VisitorID>
  </VisitorCacheAttributes>
  <VisitorCacheAttributes>
    <Attributes>
      <CacheAttribute>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </CacheAttribute>
      <CacheAttribute>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </CacheAttribute>
    </Attributes>
    <VisitorID>sample string 1</VisitorID>
  </VisitorCacheAttributes>
</ArrayOfVisitorCacheAttributes>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VisitorCALoadResult
NameDescriptionTypeAdditional information
SuccessCount

Success Count

integer

None.

ErrorCount

Error Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "SuccessCount": 1,
  "ErrorCount": 2
}

application/xml, text/xml

Sample:
<VisitorCALoadResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RedPoint.InteractionRealtime.Models">
  <ErrorCount>2</ErrorCount>
  <SuccessCount>1</SuccessCount>
</VisitorCALoadResult>