Data Types

Type

Example

Description

primary

42

Unique primary integer identifier of item8 object.

string

"qwerty"

A variable-length string between 1 and 255 characters in length.

email

"john.smith@example.com"

String type with strict validation. In general, this validates e-mail addresses against the syntax in RFC 822, with the exceptions that comments and whitespace folding and dotless domain names are not supported.

enum

"Active"

An enumeration, which is a fancy term for list. See item8 object documentation to learn more.

text

"qwerty\n qwerty"

A field with a maximum length of 65535 characters.

object

{ "key": "value" }

Complex field with Key-Value pairs.See item8 object documentation to learn more.

int

42

A normal-sized integer that can be only signed. You can specify a width of up to 11 digits.

float

321.123456

A floating-point number that cannot be unsigned.

datetime

"2017-12-30 23:59:59"

A date and time combination in YYYY-MM-DD HH:MM:SS format, between 1000-01-01 00:00:00 and 9999-12-31 23:59:59. TimeZone is the same as in your item8 instance.

date

"2017-12-30"

A date in YYYY-MM-DD format, between 1000-01-01 and 9999-12-31. TimeZone is the same as in your item8 instance.

currency

"USD"

Enum filed with ISO currency code. See available options in ECB Service.

boolean

1

1 is true; 0 is false.