updateComponentInstance
put
/ccadmin/v1/componentInstances/{id}
Update Component Instance by ID.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID for Component Instance.
Request body for updateComponentInstance endpoint.
Root Schema : putComponentInstance_request
Type:
Show Source
object-
widgetConfig(optional):
object widgetConfig
This refers to configuration for a widget instance.
Nested Schema : widgetConfig
Type:
objectThis refers to configuration for a widget instance.
Show Source
-
displayName(optional):
string
Default Value:
ProductImageViewerDisplayNameDisplay name for component instance. -
name(optional):
string
Default Value:
ProductImageViewerNameActual name for this component instance. Can be different to Display Name, but best kept the same. -
notes(optional):
string
Default Value:
My favourite instance of the ProductImageViewer component!Notes for this component instance.
Response
Supported Media Types
- application/json
200 Response
Response received after updating a component instance successfully.
Root Schema : putComponentInstance_okResponse
Type:
Show Source
object-
component(optional):
object component
The associated component.
-
configuration(optional):
object configuration
Details of any configuration for this component instance.
-
displayName(optional):
string
Default Value:
ProductImageViewerNameDisplay name for this new component instance. -
layout(optional):
string
Default Value:
oracle.doceng.json.BetterJsonNull@59581923The Associated layout for the new cloned component instance. -
links(optional):
array links
-
repositoryId(optional):
integer
Default Value:
400001Repository ID for this new component instance.
Nested Schema : component
Type:
objectThe associated component.
Show Source
-
displayName(optional):
string
Default Value:
ProductImageViewerDisplay name for component. - hiddenFromSiteStudio(optional): boolean
-
id(optional):
integer
Default Value:
300200ID attributed to this component. Can be the same as the repositoryId. -
name(optional):
string
Default Value:
ProductImageViewerActual name for this component. Can be different to Display Name, but best kept the same. -
namespace(optional):
string
Default Value:
occ.reactNamespace this component exists within. -
providesContext(optional):
string
Default Value:
oracle.doceng.json.BetterJsonNull@729c3373Contexts provided relating to this component. -
repositoryId(optional):
integer
Default Value:
300200Repository ID attributed to this component. -
requiresContext(optional):
string
Default Value:
product_context,container_contextContexts required relating to this component. -
root(optional):
string
Default Value:
/clientApplications/core-commerce-reference-store/components/ProductImageViewerDirectory root for this component. -
source(optional):
integer
Default Value:
101ID for the source used to create component. -
type(optional):
string
Default Value:
componentThe type of repository item. Will always be component here.
Nested Schema : configuration
Type:
objectDetails of any configuration for this component instance.
Show Source
-
thumbnailLocation(optional):
string
Default Value:
leftLocation of the thumbnail for this component instance.
Nested Schema : items
Type:
Show Source
object-
href(optional):
string
Default Value:
http://localhost:9080/ccadmin/v1/componentInstances/500002Specifies the location (URL) of the external resource. -
rel(optional):
string
Default Value:
selfThe relationship between the current document and the linked document/resource.
404 Response
The error response returned when ID value is not recognised.
Root Schema : putComponentInstance_doesNotExistResponse
Type:
Show Source
object-
errorCode(optional):
string
Default Value:
33001The internal error code -
message(optional):
string
Default Value:
Specified widget 'exampleId' does not exist.The HTTP error message -
status(optional):
string
Default Value:
404The HTTP status code