Skip to main content

Supported Variable Types

What are the supported variable types in the REST API?

Written by Lenka Haringerová

Variable types are used when exporting and importing to XML or JSON and during filtering.

Machine name

Name

Note

Example

string

String

Encoding is Unicode. Any character can therefore be used.

šílený koníček
こちらは田中さんです

integer

Integer

Must not contain spaces. This is a signed 4-byte integer; however, the range may be limited (see the field overview for the given agenda).

12

numeric

Decimal number

Must not contain spaces; the decimal separator is a period. This is an 8-byte double; however, the range may be limited (see the field overview for the given agenda).

12.5

date

Date

Date in the format YYYY-MM-DD; a time zone can also be specified (YYYY-MM-DDZZZ), but it will be ignored.
ZZZ is the time zone designation (Z or +HH:MM or -HH:MM).

1980‑05‑06
2015‑01‑30Z
2008‑09‑01+02:00

datetime

Date + time

Date and time in the format YYYY-MM-DD'T'HH:MM:SS.SSS; a time zone can also be specified (YYYY-MM-DD'T'HH:MM:SS.SSSZZZ), but it will be ignored.
ZZZ is the time zone designation (Z or +HH:MM or -HH:MM).

1980‑05‑06
1980‑05‑06T12:30:12
2015‑01‑30T22:55:33Z
2008‑09‑01T17:18:14+02:00
2008‑09‑01T17:18:14.075+02:00

logic

Boolean value

boolean

true
false

select

Single-value selection

Selection of one value from a set. It is represented as a string.

typVztahu.odberDodav

relation

Data relationship

The input is a record from another agenda (overview of identifier types).

123
code:CZK

Did this answer your question?