Entity Preview

Resource that represents an entity preview for an entity type.

$idstring Required

$schemaconst Required

displayNameobject Required

A localized string with a default value and zero or more translations

string Required

The default value

array of object

The list of translations

Each item of this array must be:

Type: object

string Required

The locale for this translation

string Required

The value of this translation

entityTypestring Required

Reference to the entity type that this preview corresponds to.

previewTypeenum (of string) Required

The type of this preview

Must be one of:

  • “ROW”
  • “CARD”

previewSettingsobject Required

The preview settings for this entity type

boolean Required

Default: true

True to show the entity type name, false otherwise.

boolean Required

Default: true

True to show the entity type symbol, false otherwise.

array Required

The list of field settings for this entity type

Each item of this array must be:

Settings for one field

Type: object

The following properties are required:

  • stringConfiguration
Type: object

The following properties are required:

  • listConfiguration
Type: object

The following properties are required:

  • imageConfiguration
Type: object

The following properties are required:

  • entityReferenceConfiguration

object Required

The identifier for the field

string Required

The ID of a field

array of string

A list of property names which define the path for the field

Each item of this array must be:

Type: string

enum (of string) Required

The kind of the field

Must be one of:

  • “STRING”
  • “LIST”
  • “IMAGE”
  • “ENTITY_REFERENCE”

object

A configuration for string fields

boolean

Default: false

True to emphasize the field, false otherwise. Only one field may be emphasized and if so showFieldName must be false

boolean Required

Default: true

True to show the field name, false otherwise.

object

A localized string with a default value and zero or more translations

Same definition as displayName

number Required

Default: 1

An integer value between 1 and 5 that determines the max number of lines in the preview that the field’s content should take up.

object

A configuration for list fields

boolean

Default: false

True to emphasize the field, false otherwise. Only one field may be emphasized and if so showFieldName must be false

boolean Required

Default: true

True to show the field name, false otherwise.

object

A localized string with a default value and zero or more translations

Same definition as displayName

number Required

Default: 1

An integer value between 1 and 5 that determines the max number of lines in the preview that the field’s content should take up.

boolean Required

Default: true

True to show the list value, false otherwise.

boolean Required

Default: true

True to show the list count, false otherwise.

object

A configuration for image fields

boolean Required

Default: false

True to show the field name, false otherwise.

object

A localized string with a default value and zero or more translations

Same definition as displayName

boolean Required

Default: false

True to fit the image, false otherwise.

object

A configuration for entity reference fields

boolean

Default: false

True to emphasize the field, false otherwise. Only one field may be emphasized and if so showFieldName must be false

boolean Required

Default: true

True to show the field name, false otherwise.

object

A localized string with a default value and zero or more translations

Same definition as displayName

number Required

Default: 1

An integer value between 1 and 5 that determines the max number of lines in the preview that the field’s content should take up.

boolean Required

Default: false

True to show the number of entities that this field references, false otherwise.

boolean Required

Default: false

True to show the name of the entity that this field references, false otherwise.

boolean Required

Default: false

True to show the id of the entity that this field references, false otherwise.

array of string

A list of subfields to display for a single field. This only applies to address and hours-like fields.

Each item of this array must be:

Type: string

Property name of the subfield