POST api/AddVariable
Returns the shopping cart for a Tessitura session.
Request Information
URI Parameters
None.
Body Parameters
AddVariableRequestName | Description | Type | Additional 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:
Response Information
Resource Description
GetCartResult object
ApiSuccessOfAddVariableResultName | Description | Type | Additional 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>