POST API/V40/System/Session/InitialiseByAsset
Initialise session by asset
Request Information
URI Parameters
None.
Body Parameters
the request model
InitialiseSessionByAssetRequestName | Description | Type | Additional information |
---|---|---|---|
AssetKey |
The asset key generated after the asset has been added to the catalogue. |
string |
Required |
InterfaceToken |
The token issued to the customer to enable the Api. |
string |
Required |
PropertyCode |
The code of the property. |
string |
Required |
Version |
Specify the version number (or 'draft' for draft version) - the returned token will enable access to a particular version of content, If left blank, the current live version is used |
string | |
LanguageCode |
Specify the language code for the session - if the language code is empty or null, this is defaulted |
string |
Request Formats
application/json, text/json
{ "assetKey": "sample string 1", "interfaceToken": "sample string 2", "propertyCode": "sample string 3", "version": "sample string 4", "languageCode": "sample string 5" }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ResponseContainerModelName | Description | Type | Additional information |
---|---|---|---|
SessionToken |
The token associated with this session of API interactions. Generally this is the same token passed with the API request parameters, but under certain circumstances this can be changed before being sent back to the caller. |
string | |
ResponsesIncluded |
A list of response messages names contained in this composite message, for easy pre-parsing. |
string | |
Responses |
A list of response messages contained in this composite message. |
Collection of Object | |
Status |
The success status the composite message. |
CompositeStatus |
Response Formats
application/json, text/json
{ "sessionToken": "L1pD_z7-3IgKAAAAAAAAAAAAAAA.sBdGhGzuBAvBAPNReqAS6BS2H4m2OVOglAHqG4INPIY", "responsesIncluded": "initialiseSessionResponse,responseStatus", "responses": [ { "initialiseSessionResponse": { "content": { "brandCode": "sample string 1", "groupCode": "sample string 2" }, "succeeded": true } }, { "responseStatus": { "succeeded": true } } ], "status": "Success" }