saveCurrentGeolocationSessionContext

put

/ccstore/v1/audienceContext/currentSession/geolocation/current

Save the current geolocation session context data for the current user.

Request

Supported Media Types
Body ()
Root Schema : saveCurrentGeolocationSessionContext_request
Type: object
Show Source
Example:
{
    "country_code":"US",
    "city":"DENVER",
    "timezone":"America/Denver",
    "latitude":39.7,
    "region_code":"CO",
    "longitude":105
}
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 : saveCurrentGeolocationSessionContext_response
Type: object
Show Source
Example:
{
    "country_code":"US",
    "city":"DENVER",
    "timezone":"(GMT-07:00)",
    "latitude":"39.7",
    "cityInList":"true",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/audienceContext/currentSession/geolocation/current"
        }
    ],
    "region_code":"CO",
    "longitude":"105"
}

201 Response

The following model is returned the when operation succeeds and indicates that the session data was created.
Body ()
Root Schema : saveCurrentGeolocationSessionContext_response
Type: object
Show Source
Example:
{
    "country_code":"US",
    "city":"DENVER",
    "timezone":"(GMT-07:00)",
    "latitude":"39.7",
    "cityInList":"true",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/audienceContext/currentSession/geolocation/current"
        }
    ],
    "region_code":"CO",
    "longitude":"105"
}

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| |------------------|------------------| |54107|Geolocation data contains an invalid country code: {0}| |54108|Geolocation data must contain a country code if a region code is specified.| |54109|Geolocation data contains an invalid region and/or country code: {0}| |54110|Geolocation data must contain a country code if city is specified.| |54111|Geolocation data contains a city that exceeds the maximum allowable length of {0} characters.| |54112|Geolocation data contains an invalid latitude. The value must be a number between -90 and 90.| |54113|Geolocation data contains an invalid longitude. The value must be a number between -180 and 180.| |54114|Geolocation data contains an unsupported time zone value: {0}| |54115|An error occurred while trying to validate the geolocation time zone.| |54116|An error occurred while trying to cache the geolocation data. The cache was not found.| |54117|An internal error occurred while trying to validate geolocation data.| |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