getBrowserType

get

/ccadmin/v1/browserTypes/{id}

Get details of a browser type including its user agent patterns

Request

Supported Media Types
Path Parameters
  • ID of the browser type. Must be 'snapshot' for user agents that should be served the desktop version of static snapshots, or 'mobileSnapshot' for user agents that should be served the mobile version of static snapshots.
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getBrowserType_response
Type: object
Show Source
Nested Schema : patterns
Type: array
List of user agent string patterns
Show Source
Nested Schema : regexPatterns
Type: array
List of user agent string regular expression patterns
Show Source
Example Response (application/json)
{
    "regexPatterns":[
    ],
    "viewport":"lg",
    "patterns":[
        ".*[Ss]lurp",
        ".*YahooSeeker",
        ".*Yahoo.*Crawler"
    ],
    "links":[
        {
            "rel":"self",
            "href":"/ccadmin/v1/browserTypes/snapshot?databaseOnly=false"
        }
    ],
    "id":"snapshot"
}

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| |------------------|------------------| |17001|Browser type is invalid or non-existent| |17002|Browser Type Id passed is null or empty| |17003|Internal error occurred fetching browser type|
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