Markdown Item object representation

The markdownitem object representation and fields are described below.

markdownitem was introduced in API version V1

markdownitem has not been marked for deprecation

Usages

Description

A markdown item value associated with a particular entity

Example create representation

{
  "name" : "body",
  "sortOrder" : 0,
  "value" : "# Headline\n***Welcome***",
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  }
}

Example response representation

{
  "urn" : "33a3fba0-4542-4ef5-9c9c-118a29d6b8dd",
  "name" : "body",
  "sortOrder" : 0,
  "value" : "# Headline\n***Welcome***",
  "entity" : {
    "urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
    "url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
  },
  "url" : "/n/v1/markdownitem/33a3fba0-4542-4ef5-9c9c-118a29d6b8dd"
}

Fields

NameTypeDescriptionConstraints
urnString representation of a Unique Resource Name. Typically a UUID with 36 characters.The URN of this markdown item
nameField name, typically used in content items. Typically use conventions around html ID expectations.Name for the markdown field e.g. bodyRequired on create. Maximum length: 1024.
sortOrderSigned int32Field sorting order for field orderingRequired on create.
valueString literalA markdown string which will be transformed into HTMLRequired on create. Maximum length: 4194304.
entityString representation of a Unique Resource Name. Typically a UUID with 36 characters.The entity this markdown item is associated with. Note that this is required on creation so associate the item with the containing entity. If the entity already has a value for the given name and sort order the new item will be added as a new draft (next sibling) of the head version. If the field doesn't exist and the entity is already published then the new value will default to being the published version.Required on create.
urlURL represented as a stringEndpoint URL for this text item