createSiteFromForm

post

/ccadmin/v1/siteCreateForms/{id}

Create Site From Form. Create a site based on the specified properties. Any unspecified properties will be inherited from the default site, except for id, productionURL, and additionalProductionURLs. Note that only a subset of properties can vary by site. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Path Parameters
  • ID corresponding to the site to be used as a the source template for the new site. An empty ID will use the default site as a template.
Header Parameters
Body ()
Root Schema : createSiteFromForm_request
Type: object
Show Source
Example:
{
    "properties":{
        "priceListGroupList":[
            {
                "id":"EURO"
            },
            {
                "id":"defaultPriceGroup"
            }
        ],
        "name":"CloudLake US Site test",
        "siteTypes":[
            "b2bCommerce"
        ]
    }
}
Nested Schema : properties
Type: object
Object with updatable properties.
Show Source
Nested Schema : additionalLocaleIds
Type: array
Additional locale IDs.
Show Source
Nested Schema : additionalProductionURLs
Type: array
The additional production URLs.
Show Source
Nested Schema : defaultCatalog
Type: object
The default catalog.
Show Source
Nested Schema : priceListGroupList
Type: array
List of priceListGroups to be associated with site.
Show Source
Nested Schema : siteTypes
Type: array
List of site types supported by this site
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 : createSiteFromForm_response
Type: object
Show Source
Nested Schema : additionalLocaleIds
Type: array
Additional Country ids.
Show Source
Nested Schema : defaultCatalog
Type: object
The default catalog for the site.
Show Source
Nested Schema : priceListGroupList
Type: array
List of Price List Groups associated with the site including default Price List Group
Show Source
Nested Schema : siteTypes
Type: array
List of site types supported by this site
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "priceListGroupList":[
        {
            "deleted":false,
            "repositoryId":"defaultPriceGroup",
            "active":false,
            "id":"defaultPriceGroup"
        },
        {
            "deleted":false,
            "repositoryId":"EURO",
            "active":false,
            "id":"EURO"
        }
    ],
    "inventoryLocationId":"SiteUS-GlenAllen187",
    "defaultLocaleId":"1",
    "name":"CloudLake US Site",
    "repositoryId":"siteUS",
    "id":"siteUS",
    "defaultBillingCountryId":"US",
    "defaultShippingCountryId":"US",
    "additionalLocaleIds":[
        "1"
    ],
    "siteTypes":[
        "b2bCommerce"
    ]
}

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| |------------------|------------------| |30015|Invalid Site Base URL ''{0}'' specified.| |30014|Could not update site. Allowed site types are {0}| |25015|set Property RepositoryItem Internal Error| |25014|convert Input Property Type Internal Error| |30005|Create site 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