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
- application/json
Path Parameters
- id
-
Type:
string
Required:true
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
- X-CCAsset-Language
-
Type:
string
Required:true
The asset language of the request
Body Parameter
Root Schema : createSiteFromForm_request
{
"properties":{
"priceListGroupList":[
{
"id":"EURO"
},
{
"id":"defaultPriceGroup"
}
],
"name":"CloudLake US Site test",
"siteTypes":[
"b2bCommerce"
]
}
}
- properties
-
Type:
object
propertiesRequired:true
Additional Properties Allowed:Object with updatable properties.
Nested Schema : properties
Type:
object
Object with updatable properties.
- additionalLocaleIds
-
Type:
array
additionalLocaleIdsAdditional Properties Allowed:Additional locale IDs. - additionalProductionURLs
-
Type:
array
additionalProductionURLsAdditional Properties Allowed:The additional production URLs. - defaultBillingCountryId
-
Type:
string
Default billing country ID. - defaultCatalog
-
Type:
object
defaultCatalogAdditional Properties Allowed:The default catalog. - defaultLocaleId
-
Type:
string
The default locale ID. - id
-
Type:
string
The optional repository ID of the site. If no ID is specified, than an autogenerated ID will be used. - name
-
Type:
string
Required:true
Name of the site. - priceListGroupList
-
Type:
array
priceListGroupListAdditional Properties Allowed:List of priceListGroups to be associated with site. - productionURL
-
Type:
string
The production URL. - recommendationsHost
-
Type:
string
The host name of the recommendations server. - recommendationsPort
-
Type:
string
The port of the recommendations server - repositoryId
-
Type:
string
The repository ID of the site. - siteTypes
-
Type:
array
siteTypesAdditional Properties Allowed:List of site types supported by this site
Nested Schema : additionalLocaleIds
Nested Schema : additionalProductionURLs
Nested Schema : defaultCatalog
Type:
object
The default catalog.
- repositoryId
-
Type:
string
The repository ID of the default catalog.
Nested Schema : priceListGroupList
Nested Schema : siteTypes
Nested Schema : items
Type:
object
- id
-
Type:
string
Required:true
priceListGroup id to be associated
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createSiteFromForm_response
- additionalLocaleIds
-
Type:
array
additionalLocaleIdsAdditional Properties Allowed:Additional Country ids. - defaultBillingCountryId
-
Type:
string
Default billing country ID. - defaultCatalog
-
Type:
object
defaultCatalogAdditional Properties Allowed:The default catalog for the site. - defaultLocaleId
-
Type:
string
Default locale ID. - defaultShippingCountryId
-
Type:
string
Default Shipping Country ID. - id
-
Type:
string
ID of the site. - name
-
Type:
string
Site name. - priceListGroupList
-
Type:
array
priceListGroupListAdditional Properties Allowed:List of Price List Groups associated with the site including default Price List Group - productionURL
-
Type:
string
The production base url for storefront. If set, this base url will be used for any absolute generated links e.g. sitemap urls - repositoryId
-
Type:
string
Repository ID of the site. - siteTypes
-
Type:
array
siteTypesAdditional Properties Allowed:List of site types supported by this site
Nested Schema : additionalLocaleIds
Nested Schema : defaultCatalog
Type:
object
The default catalog for the site.
- repositoryId
-
Type:
string
The ID of the default catalog for the site.
Nested Schema : priceListGroupList
Nested Schema : siteTypes
Nested Schema : items
Type:
object
- active
-
Type:
boolean
true if priceListGroup is active otherwise false - deleted
-
Type:
boolean
true if priceListGroup is deleted otherwise false - id
-
Type:
string
priceListGroup id associated to site - repositoryId
-
Type:
string
priceListGroup id associated to site
Example application/json
{
"priceListGroupList":[
{
"deleted":false,
"repositoryId":"defaultPriceGroup",
"active":false,
"id":"defaultPriceGroup"
},
{
"deleted":false,
"repositoryId":"EURO",
"active":false,
"id":"EURO"
}
],
"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
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Request:
{"properties": { "priceListGroupList": [ {"id": "EURO"}, {"id": "defaultPriceGroup"} ], "name": "CloudLake US Site test", "siteTypes": ["b2bCommerce"] }}
Sample Response Payload returned by endpoint:
{ "priceListGroupList": [ { "deleted": false, "repositoryId": "defaultPriceGroup", "active": false, "id": "defaultPriceGroup" }, { "deleted": false, "repositoryId": "EURO", "active": false, "id": "EURO" } ], "defaultLocaleId": "1", "name": "CloudLake US Site", "repositoryId": "siteUS", "id": "siteUS", "defaultBillingCountryId": "US", "defaultShippingCountryId": "US", "additionalLocaleIds": ["1"], "siteTypes": ["b2bCommerce"] }