updateSlot
put
/ccadmin/v1/slots/{id}
Update Slot. Update the settings of a slot
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID of the slot instance to be updated
Root Schema : updateSlot_request
Type:
Show Source
object
-
slotConfig(optional):
object slotConfig
Slot Configuration
Example:
{
"slotConfig":{
"notes":"simple random slot",
"name":"Random Slot"
}
}
Nested Schema : slotConfig
Type:
object
Slot Configuration
Show Source
-
name(optional):
string
Slot name
-
notes(optional):
string
Slot notes
-
settings(optional):
object settings
Settings
Nested Schema : settings
Type:
object
Settings
Show Source
-
showButtons(optional):
boolean
Show Buttons
-
showStepNames(optional):
boolean
Show Step Names
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateSlot_response
Type:
Show Source
object
-
descriptor(optional):
object descriptor
The slot descriptor associated with the slot instance
-
displayName(optional):
string
Display name for the slot instance
-
id(optional):
string
Slot instance ID
-
repositoryId(optional):
string
Repository ID for slot instance
Nested Schema : descriptor
Type:
object
The slot descriptor associated with the slot instance
Show Source
-
availableToAllPages(optional):
boolean
Whether slot descriptor is available to all pages
-
configurable(optional):
boolean
Whether the slot is configurable
-
displayName(optional):
string
Display name for the slot descriptor
-
id(optional):
string
ID of the slot descriptor
-
isLatestVersion(optional):
boolean
Whether this is the latest version of the slot descriptor
-
latestVersion(optional):
integer
The latest version of the slot descriptor
-
minWidth(optional):
integer
Minimum width for the slot
-
pageTypes(optional):
array pageTypes
Page types that the slot descriptor can be used with
-
regions(optional):
array regions
Slot sub-regions
-
repositoryId(optional):
string
Repository ID of the slot descriptor
-
slotType(optional):
string
Type of slot
-
version(optional):
integer
Version of the slot descriptor
Nested Schema : pageTypes
Type:
array
Page types that the slot descriptor can be used with
Show Source
Nested Schema : items
Type:
Show Source
object
-
alias(optional):
string
Page type alias
-
id(optional):
string
Page type ID
-
repositoryId(optional):
string
Page type repository ID
-
shortName(optional):
string
Page type name
Nested Schema : items
Type:
Show Source
object
-
repositoryId(optional):
string
Repository ID for a slot step region
Example Response (application/json)
{
"settings":{
},
"instance":{
"displayName":"Random Slot",
"repositoryId":"re100002",
"descriptor":{
"isLatestVersion":true,
"regions":[
{
"repositoryId":"randomSlotControl"
},
{
"repositoryId":"randomSlotVariantOne"
}
],
"slotType":"randomSlot",
"latestVersion":1,
"displayName":"Random Slot",
"availableToAllPages":true,
"repositoryId":"randomSlot",
"minWidth":1,
"id":"randomSlot",
"pageTypes":[
],
"version":1,
"configurable":true
},
"id":"re100002"
},
"notes":"",
"name":"Random Slot",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/slots/re100002"
}
]
}
412 Response
ETag mismatch. Asset has been updated by another user.
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code