Double Item object representation

The doubleitem object representation and fields are described below.

doubleitem was introduced in API version V1

doubleitem has not been marked for deprecation

Endpoint usages

Description

A double precision content item associated with a content entity

Example create representation

{
  "name" : "Pi",
  "sortOrder" : 0,
  "value" : 3.141592653589793,
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  }
}

Example response representation

{
  "urn" : "cdb57a49-7253-4f97-a1d7-38e93f45d1bc",
  "url" : "/n/v1/doubleitem/cdb57a49-7253-4f97-a1d7-38e93f45d1bc",
  "name" : "Pi",
  "sortOrder" : 0,
  "value" : 3.141592653589793,
  "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 string
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.
valueDouble precision floating point real numberA double precision floating point number valueRequired on create.
entityEntityThe associated entity URN this double item will be added to.Required on create.
isPublishedBoolean literal e.g. trueSet to true in the context of 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 double item was created in history view
historyDouble Item HistoryThe history for this double item