POST api/AddVariable

Returns the shopping cart for a Tessitura session.

Request Information

URI Parameters

None.

Body Parameters

AddVariableRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

VariableName

string

Required

Value

string

Required

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1",
  "VariableName": "sample string 2",
  "Value": "sample string 3"
}

application/xml, text/xml

Sample:
<AddVariableRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
  <SessionKey>sample string 1</SessionKey>
  <Value>sample string 3</Value>
  <VariableName>sample string 2</VariableName>
</AddVariableRequest>

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

Response Information

Resource Description

GetCartResult object

ApiSuccessOfAddVariableResult
NameDescriptionTypeAdditional information
Success

boolean
Data

AddVariableResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "VariableName": "sample string 1",
    "Value": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfAddVariableResult5WS87vwN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
    <d2p1:Value>sample string 2</d2p1:Value>
    <d2p1:VariableName>sample string 1</d2p1:VariableName>
  </Data>
</ApiSuccessOfAddVariableResult5WS87vwN>