GET api/Decisions/Contexts/{clientID}/{contextName}/{visitorID}?slotName={slotName}&returnAll={returnAll}&minuteOffSetUTC={minuteOffSetUTC}&deviceID={deviceID}&apiContext={apiContext}

Returns content for a specified context

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientID

Client ID

globally unique identifier

Required

visitorID

Visitor ID

string

Required

contextName

Context

string

Required

slotName

Slot name

string

Default value is

returnAll

If no slot name is provided, returnAll controls if all content decisions are returned or just the default

boolean

Default value is False

minuteOffSetUTC

Client offset from UTC

integer

Default value is 0

deviceID

Device ID

string

Default value is

apiContext

Context API is called from, used for non web page calls to persist decision metadata

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Collection of DecisionResult
NameDescriptionTypeAdditional information
ContentName

string

None.

ResultID

globally unique identifier

None.

ContentID

string

None.

Result

string

None.

ResultContent

Object

None.

ResultContentXML

XElement

None.

ContentFormat

DecisionContentFormat

None.

IsCachedContent

boolean

None.

DefaultKey

string

None.

DivName

string

None.

ContentPath

string

None.

IsEmptyResult

boolean

None.

PluginTag

string

None.

PluginTagDefault

string

None.

ContextName

string

None.

SlotName

string

None.

VisitorID

string

None.

DecisionType

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ContentName": "sample string 1",
    "ResultID": "e7e6dcaf-ca14-4f9d-b831-ee62e93e7473",
    "ContentID": "sample string 3",
    "Result": "sample string 4",
    "ResultContent": {},
    "ResultContentXML": null,
    "ContentFormat": "TEXT",
    "IsCachedContent": true,
    "DefaultKey": "sample string 7",
    "DivName": "sample string 8",
    "ContentPath": "sample string 9",
    "IsEmptyResult": true,
    "PluginTag": "sample string 11",
    "PluginTagDefault": "sample string 12",
    "ContextName": "sample string 13",
    "SlotName": "sample string 14",
    "VisitorID": "sample string 15",
    "DecisionType": "sample string 16"
  },
  {
    "ContentName": "sample string 1",
    "ResultID": "e7e6dcaf-ca14-4f9d-b831-ee62e93e7473",
    "ContentID": "sample string 3",
    "Result": "sample string 4",
    "ResultContent": {},
    "ResultContentXML": null,
    "ContentFormat": "TEXT",
    "IsCachedContent": true,
    "DefaultKey": "sample string 7",
    "DivName": "sample string 8",
    "ContentPath": "sample string 9",
    "IsEmptyResult": true,
    "PluginTag": "sample string 11",
    "PluginTagDefault": "sample string 12",
    "ContextName": "sample string 13",
    "SlotName": "sample string 14",
    "VisitorID": "sample string 15",
    "DecisionType": "sample string 16"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDecisionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RedPoint.Resonance.Web.Shared">
  <DecisionResult>
    <ContentFormat>TEXT</ContentFormat>
    <ContentID>sample string 3</ContentID>
    <ContentName>sample string 1</ContentName>
    <ContentPath>sample string 9</ContentPath>
    <ContextName>sample string 13</ContextName>
    <DecisionType>sample string 16</DecisionType>
    <DefaultKey>sample string 7</DefaultKey>
    <DivName>sample string 8</DivName>
    <IsCachedContent>true</IsCachedContent>
    <IsEmptyResult>true</IsEmptyResult>
    <PluginTag>sample string 11</PluginTag>
    <PluginTagDefault>sample string 12</PluginTagDefault>
    <Result>sample string 4</Result>
    <ResultContent />
    <ResultContentXML i:nil="true" />
    <ResultID>e7e6dcaf-ca14-4f9d-b831-ee62e93e7473</ResultID>
    <SlotName>sample string 14</SlotName>
    <VisitorID>sample string 15</VisitorID>
  </DecisionResult>
  <DecisionResult>
    <ContentFormat>TEXT</ContentFormat>
    <ContentID>sample string 3</ContentID>
    <ContentName>sample string 1</ContentName>
    <ContentPath>sample string 9</ContentPath>
    <ContextName>sample string 13</ContextName>
    <DecisionType>sample string 16</DecisionType>
    <DefaultKey>sample string 7</DefaultKey>
    <DivName>sample string 8</DivName>
    <IsCachedContent>true</IsCachedContent>
    <IsEmptyResult>true</IsEmptyResult>
    <PluginTag>sample string 11</PluginTag>
    <PluginTagDefault>sample string 12</PluginTagDefault>
    <Result>sample string 4</Result>
    <ResultContent />
    <ResultContentXML i:nil="true" />
    <ResultID>e7e6dcaf-ca14-4f9d-b831-ee62e93e7473</ResultID>
    <SlotName>sample string 14</SlotName>
    <VisitorID>sample string 15</VisitorID>
  </DecisionResult>
</ArrayOfDecisionResult>