Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.4 KB

create-catalog-image-response.md

File metadata and controls

29 lines (21 loc) · 1.4 KB

Create Catalog Image Response

Structure

CreateCatalogImageResponse

Fields

Name Type Tags Description
errors Error[] | undefined Optional Any errors that occurred during the request.
image CatalogObject | undefined Optional The wrapper object for the catalog entries of a given object type.

Depending on the type attribute value, a CatalogObject instance assumes a type-specific data to yield the corresponding type of catalog object.

For example, if type=ITEM, the CatalogObject instance must have the ITEM-specific data set on the item_data attribute. The resulting CatalogObject instance is also a CatalogItem instance.

In general, if type=<OBJECT_TYPE>, the CatalogObject instance must have the <OBJECT_TYPE>-specific data set on the <object_type>_data attribute. The resulting CatalogObject instance is also a Catalog<ObjectType> instance.

For a more detailed discussion of the Catalog data model, please see the
Design a Catalog guide.

Example (as JSON)

{
  "image": {
    "id": "KQLFFHA6K6J3YQAQAWDQAL57",
    "image_data": {
      "caption": "A picture of a cup of coffee",
      "url": "https://..."
    },
    "type": "IMAGE"
  }
}