Image Item object representation

The imageitem object representation and fields are described below.

imageitem was introduced in API version V1

imageitem has not been marked for deprecation

Usages

Description

Object representing an image resource

Example create representation

{
  "name" : "heading_background",
  "sortOrder" : 0,
  "altText" : "Description of the image",
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  }
}

Example response representation

{
  "urn" : "b62ebbea-fdc1-4926-917a-ffb0848fd239",
  "url" : "/n/v1/imageitem/b62ebbea-fdc1-4926-917a-ffb0848fd239",
  "name" : "heading_background",
  "sortOrder" : 0,
  "altText" : "Description of the image",
  "src" : "https://example.com/url/will/be/set/when/asset/uploaded.jpg",
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  }
}

Fields

NameTypeDescriptionConstraints
urnString representation of a Unique Resource Name. Typically a UUID with 36 characters.Minimum length: 36. Maximum length: 36.
urlURL represented as a stringUrl of the image item representation
nameField name, typically used in content items. Typically use conventions around html ID expectations.Name for the field e.g. meta_title. Fields can be arbitrary. Suggest using JS like field namesRequired on create. Maximum length: 1024.
sortOrderSigned int32Field sorting order for field orderingRequired on create.
altTextString literalAlt[ternative] text for imageMaximum length: 1024.
srcURL represented as a stringURL for the image for the default sizeMaximum length: 2048.
largeSrcURL represented as a stringURL for the image for the large sizeMaximum length: 2048.
mediumSrcURL represented as a stringURL for the image for the medium sizeMaximum length: 2048.
entityentityURN of the entity owning this imageRequired on create.