saveDeviceTypeSessionContext
put
                    /ccstore/v1/audienceContext/currentSession/deviceType/current
Save the current session device data for the current user.
                Request
Supported Media Types
                - application/json
 
Root Schema : saveCurrentSessionDeviceDataContext_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            deviceOS(optional): 
            string
            The OS of the device for the current session.
 - 
            deviceType(optional): 
            string
            The type of device for the current session.
 
Example:
    
    
{
    "deviceData":{
        "deviceType":"mobile",
        "deviceOS":"iOS"
    }
}Response
Supported Media Types
                - application/json
 
200 Response
The following model is returned the when operation succeeds and indicates that the session context was updated.
                
                
                    Root Schema : saveCurrentSessionDeviceDataContext_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            deviceOS(optional): 
            string
            The OS of the device for the current session.
 - 
            deviceType(optional): 
            string
            The type of device for the current session.
 
Example:
    
    
{
    "deviceType":"mobile",
    "deviceOS":"iOS",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/audienceContext/currentSession/deviceType/current"
        }
    ]
}201 Response
The following model is returned the when operation succeeds and indicates that the session data was created.
                
                
                    Root Schema : saveCurrentSessionDeviceDataContext_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            deviceOS(optional): 
            string
            The OS of the device for the current session.
 - 
            deviceType(optional): 
            string
            The type of device for the current session.
 
Example:
    
    
{
    "deviceType":"mobile",
    "deviceOS":"iOS",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/audienceContext/currentSession/deviceType/current"
        }
    ]
}Default Response
The error response.
 The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|54120|Device Data contains the following invalid properties: {0}|
|54121|Device Data contains an invalid device type data: {0}|
|54122|Device Data contains an invalid device OS data: {0}|
|54123|Device Data to be validated or cached is null.|
|54144|The required header is missing: X-CCVisitId|
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode(optional): 
            string
            The numerical code identifying the error
 - 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
 - 
            message(optional): 
            string
            The localized message describing the error
 - 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
 - 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
 - 
            status(optional): 
            string
            The HTTP status code
 - 
            type(optional): 
            string
            The URI to the HTTP state code definition
 
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode(optional): 
            string
            The numerical code identifying the error
 - 
            message(optional): 
            string
            The localized message describing the error
 - 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
 - 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
 - 
            status(optional): 
            string
            The HTTP status code