Update hidden slot descriptors
put
                    /ccadmin/v1/slotDescriptors/hidden
Sets whether a Slot Descriptor will be visible in the Admin Design Components library
This allows for Slot Descriptors, that are not going to be used, to be hidden from component drawer.
Note: Hidden Slot Descriptors will be returned by the Retrieve All Slot Descriptors Endpoint with the exception that their hiddenFromSiteStudio property will be set to true.
                This allows for Slot Descriptors, that are not going to be used, to be hidden from component drawer.
Note: Hidden Slot Descriptors will be returned by the Retrieve All Slot Descriptors Endpoint with the exception that their hiddenFromSiteStudio property will be set to true.
Request
Supported Media Types
                - application/json
Root Schema : updateHiddenSlotTypes_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            slotDescriptors(optional): 
            array  slotDescriptors
            
            Array of slot types flag to show/hide each type in the Design tools
Example:
    
    
{
    "slotDescriptors":[
        {
            "slotType":"randomSlot",
            "hiddenFromSiteStudio":true
        }
    ]
}Nested Schema : slotDescriptors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of slot types flag to show/hide each type in the Design tools
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : updateHiddenSlotTypes_200_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            autoWrap(optional): 
            boolean
            description of autoWrap
- 
            items(optional): 
            array  items
            
            Array of slot types, optionally filtered by page type
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            availableToAllPages(optional): 
            boolean
            Whether or not this slot type is available to all page types
- 
            configurable(optional): 
            boolean
            Whether or not this slot type has configuration properties
- 
            displayName(optional): 
            string
            Localised name for this slot type
- 
            id(optional): 
            string
            ID for this slot type
- 
            isLatestVersion(optional): 
            boolean
            Whether or not this is the latest verison of this slot type
- 
            latestVersion(optional): 
            integer
            Latest version of this slot type
- 
            minWidth(optional): 
            integer
            Minimum number of columns, in layout grid, that this slot type fits into
- 
            pageTypes(optional): 
            array  pageTypes
            
            Array of page types that this slot type can be added to. Will be empty if availableToAllPages is true.
- 
            regions(optional): 
            array  regions
            
            Default sub-regions for this slot type
- 
            repositoryId(optional): 
            string
            ID for the slot type in the repository
- 
            slotType(optional): 
            string
            The type name for this slot type
- 
            version(optional): 
            integer
            The version of the slot type
Nested Schema : pageTypes
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of page types that this slot type can be added to. Will be empty if availableToAllPages is true.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            alias(optional): 
            string
            path for the page type
- 
            id(optional): 
            string
            ID of the page type
- 
            repositoryId(optional): 
            string
            ID for the page type in the repository
- 
            shortName(optional): 
            string
            Name of the page type
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            repositoryId(optional): 
            string
            ID for the region in the repository
Example Response (application/json)
                    {
    "links":[
        {
            "rel":"self",
            "href":"slotDescriptors/hidden"
        }
    ],
    "autoWrap":true,
    "items":[
        {
            "isLatestVersion":true,
            "regions":[
                {
                    "repositoryId":"randomSlotControl"
                },
                {
                    "repositoryId":"randomSlotVariantOne"
                }
            ],
            "slotType":"randomSlot",
            "displayName":"Random Slot",
            "availableToAllPages":true,
            "minWidth":1,
            "version":1,
            "maxVariants":3,
            "latestVersion":1,
            "repositoryId":"randomSlot",
            "hiddenFromSiteStudio":false,
            "id":"randomSlot",
            "pageTypes":[
            ],
            "configurable":false
        }
    ]
}400 Response
JSON structure is not as expected
                
                
                    Root Schema : updateHiddenSlotTypes_400_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            errorCode(optional): 
            string
            71006
- 
            message(optional): 
            string
            Unexpected JSON Structure
- 
            status(optional): 
            string
            400
Default Response
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
The error response:
                
                
                    | Error Code | Description | Possible Fix | 
|---|---|---|
| 32108 | Internal Error retrieving all slot descriptors. | Ensure you have specified a valid slot descriptor id. | 
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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn 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