Retrieve config definition for a slot descriptor

get

/ccadmin/v1/slotDescriptors/{id}/config

Retrieves the configuration definition for a Slot Descriptor.

This configuration definition can then be used to dynamically build the UI for the Slot Descriptor's configuration settings.

Information returned about a configuration setting include the setting type, if it has default values and its max length of data.

Note: In order to use this endpoint, a Slot Descriptor's ID is required.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getConfigDefinitionForSlotDescriptor_response
Type: object
Show Source
Nested Schema : values
Type: array
Array of configurable properties for this slot type
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : options
Type: array
List of option values where property is a select/drop-down
Show Source
Example Response (application/json)
{
    "values":[
        {
            "helpText":"Whether this slot is active",
            "defaultValue":"true",
            "minLength":0,
            "label":"Enable Slot",
            "type":"checkbox",
            "required":false,
            "displayOnInstances":null,
            "name":null,
            "repositoryId":"enableSlot",
            "options":[
            ],
            "regexText":null,
            "displayAsCheckboxes":false,
            "maxLength":1000
        }
    ],
    "repositoryId":"randomSlot",
    "links":[
        {
            "rel":"self",
            "href":"slotDescriptors/randomSlot/config"
        }
    ]
}

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescription
000000Config Definition not foundEnsure you have specified a valid slot descriptor id.

The error response:
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