saveDeviceTypeSessionContext

put

/ccstore/v1/audienceContext/currentSession/deviceType/current

Save the current session device data for the current user.

Request

Supported Media Types
Body ()
Root Schema : saveCurrentSessionDeviceDataContext_request
Type: object
Show Source
Example:
{
    "deviceData":{
        "deviceType":"mobile",
        "deviceOS":"iOS"
    }
}
Back to Top

Response

Supported Media Types

200 Response

The following model is returned the when operation succeeds and indicates that the session context was updated.
Body ()
Root Schema : saveCurrentSessionDeviceDataContext_response
Type: object
Show Source
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.
Body ()
Root Schema : saveCurrentSessionDeviceDataContext_response
Type: object
Show Source
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|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top