createSiteGroup

post

/ccadmin/v1/siteGroups

Create a site group based on the specified properties. Member sites must exist before the group is created. Any unspecified properties will be set to default values. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Query Parameters
  • Boolean indicating if the translations property should be returned for each item in the response. The default value is false.
Header Parameters
Body ()
Root Schema : createSiteGroup_request
Type: object
Show Source
  • Name of the site group.
  • The optional ID of the site group. If no ID is specified, than an autogenerated ID will be used.
  • True if the member sites can share the shopping cart. False allows the group to be used for purposes other than cart sharing. The default is false.
  • sites
    List of sites that are members of the group. The sites must already exist.
Example:
{
    "displayName":"Cart sharing group for US sites",
    "sharedCart":true,
    "sites":[
        {
            "id":"siteUSEast"
        },
        {
            "id":"siteUSCentral"
        },
        {
            "id":"siteUSWest"
        }
    ],
    "id":"cartGroupUS"
}
Nested Schema : sites
Type: array
List of sites that are members of the group. The sites must already exist.
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : siteGroup_response
Type: object
Show Source
Nested Schema : sites
Type: array
List of sites that are members of the group.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "displayName":"Cart sharing group for US sites",
    "sharedCart":true,
    "sites":[
        {
            "name":"East site",
            "id":"siteUSEast"
        },
        {
            "name":"Central site",
            "id":"siteUSCentral"
        },
        {
            "name":"West site",
            "id":"siteUSWest"
        }
    ],
    "id":"cartGroupUS"
}

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| |------------------|------------------| |30305|CREATE_SITE_GROUP_FAILED|
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