updateSlot
put
/ccadmin/v1/slots/{id}
Update Slot. Update the settings of a slot
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
ID of the slot instance to be updated
Root Schema : updateSlot_request
Type:
Show Source
object
-
slotConfig:
object slotConfig
Slot Configuration
Example:
{
"slotConfig":{
"notes":"simple random slot",
"name":"Random Slot"
}
}
Nested Schema : slotConfig
Type:
object
Slot Configuration
Show Source
-
name:
string
Slot name
-
notes:
string
Slot notes
-
settings:
object settings
Settings
Nested Schema : settings
Type:
object
Settings
Show Source
-
showButtons:
boolean
Show Buttons
-
showStepNames:
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:
object descriptor
The slot descriptor associated with the slot instance
-
displayName:
string
Display name for the slot instance
-
id:
string
Slot instance ID
-
repositoryId:
string
Repository ID for slot instance
Nested Schema : descriptor
Type:
object
The slot descriptor associated with the slot instance
Show Source
-
availableToAllPages:
boolean
Whether slot descriptor is available to all pages
-
configurable:
boolean
Whether the slot is configurable
-
displayName:
string
Display name for the slot descriptor
-
id:
string
ID of the slot descriptor
-
isLatestVersion:
boolean
Whether this is the latest version of the slot descriptor
-
latestVersion:
integer
The latest version of the slot descriptor
-
minWidth:
integer
Minimum width for the slot
-
pageTypes:
array pageTypes
Page types that the slot descriptor can be used with
-
regions:
array regions
Slot sub-regions
-
repositoryId:
string
Repository ID of the slot descriptor
-
slotType:
string
Type of slot
-
version:
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:
string
Page type alias
-
id:
string
Page type ID
-
repositoryId:
string
Page type repository ID
-
shortName:
string
Page type name
Nested Schema : items
Type:
Show Source
object
-
repositoryId:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code