Special data types in RESTful Webservice


To send attribute values to todo4teams that are not of a  simple string type, please use the following formats:

Floating point numbers

For floating point numbers please use the American numeric format with a dot as a decimal separator, for example:


"fields":
  {
 "Price": 34.12
  }

Integers

For integer numbers please note that these can not be enclosed in quotation marks:


"fields":
  {
 "Count": 120
  }

Date / time and date

Date values are transferred in the format according to ISO 8601, ie. as UTC time: 2016-11-23T13: 30: 37Z, see here. The date value has to be formatted, e.g. In JSON there must be added quotation marks:


"fields":
  {
 "DateTime": "2016-11-23T13:30:37Z"
  }

Multiple choices

You can specify multiple fields by  passing  an array of strings in JSON:


"fields":
  {
 "AvailableDirections": ["left", "right", "back"]
  }