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

Endpoint 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"
  },
  "isPublished" : false
}

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"
  },
  "isPublished" : false
}

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.
isPublishedBoolean literal e.g. trueSet in the context of an image item history to indicate which item is published
createdTimestampTimestamp expressed in ISO 8601 format without timezone including milliseconds. Note unless otherwise stated in UTC zone.The timestamp the image item was created in history view
historyImage item historyThe history for this image item