{"id":508,"date":"2017-02-21T23:20:30","date_gmt":"2017-02-21T23:20:30","guid":{"rendered":"http:\/\/live.ecd-demo.com\/apihelp\/?page_id=508"},"modified":"2017-02-21T23:20:30","modified_gmt":"2017-02-21T23:20:30","slug":"data-types","status":"publish","type":"page","link":"https:\/\/apihelp.ecd-demo.com\/index.php\/documentation\/reference\/data-types\/","title":{"rendered":"Data Types"},"content":{"rendered":"\n<table id=\"tablepress-4\" class=\"tablepress tablepress-id-4 table-cols-2\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">Data Type<\/th><th class=\"column-2\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">string<\/td><td class=\"column-2\">String according to XSD string data type. If used in URLs, IDs have to be encoded according to RFC3986 Section 2.5: the string should first be encoded as octets according to the UTF-8 character encoding; then only those octets that do not correspond to characters in the unreserved set (ASCII letters, digits, hyphen, dot, underscore, tilde) should be percent-encoded. In JSON objects the ID strings are encoded according to http:\/\/www.json.org<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">indexname<\/td><td class=\"column-2\">String of maximum length 20 characters, composed of lowercase<br \/>\nASCII letters and of digits 0-9, dots, hyphens. NOTE that in contrast to<br \/>\nCDAPI and Ncanto underscores are not supported!<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">int<\/td><td class=\"column-2\">Integer number according to XSD integer data type<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">decimal<\/td><td class=\"column-2\">Decimal number according to XSD decimal data type, for example, \"1.347\"<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">boolean<\/td><td class=\"column-2\">''true'' or ''false''<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">timestamp<\/td><td class=\"column-2\">Time according to XSD dateTime data type, format<br \/>\n\"CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]\", for example,<br \/>\n\"2001-10-26T21:32:52\", \"2001-10-26T21:32:52+02:00\",<br \/>\n\"2001-10-26T19:32:52Z\", \"2001-10-26T19:32:52+00:00\", or<br \/>\n\"2001-10-26T21:32:52.12679\". Note that for internal implementation reasons timestamps older than 1970-01-01T00:00:00Z may not work in filter requests.<\/td>\n<\/tr>\n<tr class=\"row-8 even\">\n\t<td class=\"column-1\">duration<\/td><td class=\"column-2\">Time interval according to XSD duration data type, format<br \/>\n\"PnYnMnDTnHnMnS\", for example, \"PT1Y6M15DT12H\" (one year, 6 months, 15 days, 12 hours) or \"-PT1H\" (minus one hour).<\/td>\n<\/tr>\n<tr class=\"row-9 odd\">\n\t<td class=\"column-1\">time<\/td><td class=\"column-2\">Time of day, format \"hh:mm:ss\", for example, \"21:32:52\", or \"21:32:52.12679\"<\/td>\n<\/tr>\n<tr class=\"row-10 even\">\n\t<td class=\"column-1\">json<\/td><td class=\"column-2\">JSON object (http:\/\/www.json.org)<\/td>\n<\/tr>\n<tr class=\"row-11 odd\">\n\t<td class=\"column-1\">langCode<\/td><td class=\"column-2\">String composed of ASCII letters, digits, and hyphen '-'. This data type<br \/>\nis used for language specifications and is wide enough to support all<br \/>\ncommonly used language codes, for example, ISO 639 and BCP 47.<\/td>\n<\/tr>\n<tr class=\"row-12 even\">\n\t<td class=\"column-1\">timezone<\/td><td class=\"column-2\">Timezone info in tz database format (for example, ''\"Europe\/Vienna\"'') or as fixed offset ''[+-]hh:mm'' (for example, ''\"+03:00\"''). See http:\/\/en.wikipedia.org\/<br \/>\nwiki\/List_of_tz_database_time_zones for a complete list of tz database IDs.<\/td>\n<\/tr>\n<tr class=\"row-13 odd\">\n\t<td class=\"column-1\">enum<\/td><td class=\"column-2\">One of the specified values<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-4 from cache -->\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":499,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-leftsidebar.php","meta":{"footnotes":""},"class_list":["post-508","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":0,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/508\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/499"}],"wp:attachment":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/media?parent=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}