Boolean Item object representation

The booleanitem object representation and fields are described below.

booleanitem was introduced in API version V1

booleanitem has not been marked for deprecation

Usages

Description

A boolean content item associatedwith a content entity

Example create representation

{
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  },
  "name" : "is_it_safe",
  "sortOrder" : 0,
  "value" : false
}

Example response representation

{
  "urn" : "8a1b6dfc-c255-4245-80cc-ebecd227c033",
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  },
  "url" : "/n/v1/booleanitem/8a1b6dfc-c255-4245-80cc-ebecd227c033",
  "name" : "is_it_safe",
  "sortOrder" : 0,
  "value" : false
}

Fields

NameTypeDescriptionConstraints
urnString representation of a Unique Resource Name. Typically a UUID with 36 characters.The URN of the boolean item in the context of an entityMinimum length: 36. Maximum length: 36.
entityentityThe URN of the entity this boolean item value is associated withRequired on create.
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.
valueBoolean literal e.g. trueA boolean (truthy) content itemRequired on create.