Several data types could be used in requests (GET parameters) as well as in responses (in JSON documents):
| Type | Description |
|---|---|
| bool | Boolean value (true or false) |
| int | Plain integer value |
| float | Floating-point value |
| string | Text string of any length |
| date | Text string that contains a date, using ISO 8601 format ('YYYY-MM-DD') |
| datetime | Text string that contains a date and time data, using ISO 8601 format ('YYYY-MM-DD HH:mm:ss', 24-hours format with leading zero, GMT time) |
| enum | Text string that contains one value from a defined set of possible values |
| set | Text string that contains multiple values from a defined set of possible values, separated with comas |
Complex data types are used in responses (in JSON documents):
| Type | Description |
|---|---|
| array | List that contains sub-elements (all of the same type) |
| assoc | Associative array (set of key/value pairs) |
In GET parameters, arrays could be sent by giving the same parameter several times with square-brackets notation. For example, a list of role identifiers could be sent this way: roles[]=25&roles[]=129&roles[]=53