getMetadata

get

/ccagent/v1/metadata/{id}

Get Metadata. Get the metadata for an item type

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
ID of the file.
Query Parameters
dynamicOnly
Type: boolean
Indicates what type of properties to return. If set to true, only dynamic properties will be returned, otherwise all properties will be returned. Only supported for the 'order' item type.
filterByShopperContext
Type: string
If set to true, filters the dynamic properties that are related to shopper context

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getMetadata_response
Example application/json

[
    {
        "itemType":"product",
        "length":254,
        "label":"Name",
        "type":"shortText",
        "required":true,
        "searchable":true,
        "uiEditorType":null,
        "default":null,
        "textSearchable":true,
        "id":"displayName",
        "dimension":null,
        "multiSelect":true,
        "order":"0"
    },
    {
        "itemType":"product",
        "length":165,
        "label":"Product ID",
        "type":"shortText",
        "required":true,
        "searchable":null,
        "uiEditorType":null,
        "default":"",
        "textSearchable":null,
        "id":"id",
        "dimension":null,
        "multiSelect":null,
        "order":"10"
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

[
  {
    "itemType": "product",
    "length": 254,
    "label": "Name",
    "type": "shortText",
    "required": true,
    "searchable": true,
    "uiEditorType": null,
    "default": null,
    "textSearchable": true,
    "id": "displayName",
    "dimension": null,
    "multiSelect": true,
    "order": "0"
  },
  {
    "itemType": "product",
    "length": 165,
    "label": "Product ID",
    "type": "shortText",
    "required": true,
    "searchable": null,
    "uiEditorType": null,
    "default": "",
    "textSearchable": null,
    "id": "id",
    "dimension": null,
    "multiSelect": null,
    "order": "10"
  }
]