updateWidgetDescriptorSites

post

/ccadmin/v1/widgetDescriptors/{id}/updateSiteAssociations

Update Widget Descriptor Sites. Updates the site associations for global widgets /{id}/updateSiteAssociations

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : updateWidgetDescriptorSites_request
Type: object
Show Source
Example:
{
    "sites":[
        "siteUS"
    ]
}
Nested Schema : sites
Type: array
The sites to associate with this widget
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 : updateWidgetDescriptorSites_response
Type: object
Show Source
Example Response (application/json)
{
    "result":true,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/widgetDescriptors/myGlobalWidget/updateSiteAssociations"
        }
    ]
}

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| |------------------|------------------| |33017|Specified widget ID does not exist| |30001|Specified site ID does not exist| |33048|Error occurred attempting to update the widget| |33046|Sites property missing from request| |33047|Attempt made to update site associations for a widget that is not global|
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