getABTestCampaignElementVariants

get

/ccadmin/v1/abTestCampaigns/{abTestCampaignId}/elements/{elementId}/variants

Gets a list of variants for the specified element in the specified A/B Test Campaign.

Request

Supported Media Types
Path Parameters
Query Parameters
  • This controls which fields are returned in the response body. For example, to include the ID and displayName for each variant in the list, you can send fields=items.id,items.displayName.
  • This is the field to specify the number of records to be fetched per REST call.
  • This field specifies the offset/starting index from which data to be fetched.
  • This field specifies the query used to limit variants.
  • This field specifies the sort order of the list to be fetched.
  • Indicates if the total results should be included in the response.
Back to Top

Response

Supported Media Types

200 Response

The following model is returned when operation succeeds.
Body ()
Root Schema : getABTestCampaignElementVariants_response
Type: object
Show Source
Nested Schema : items
Type: array
The returned list of items.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "total":2,
    "totalResults":2,
    "offset":0,
    "limit":250,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/abTestCampaigns/MDkzODcy/elements/MjM5MTgy/variants?actions=%5Bobject%20Object%5D%2C%5Bobject%20Object%5D"
        }
    ],
    "sort":[
        {
            "property":"displayName",
            "order":"asc"
        }
    ],
    "items":[
        {
            "elementId":"MjM5MTgy",
            "displayName":"Default",
            "abTestCampaignId":"MDkzODcy",
            "id":"5MTgyMjM"
        },
        {
            "elementId":"MjM5MTgy",
            "displayName":"E1 - V1",
            "abTestCampaignId":"MDkzODcy",
            "id":"zODcyMDk"
        }
    ]
}

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| |------------------|------------------| |54011|An error occurred querying variants.|
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