#
The following is a guide to the Data Types available at Request/Response body level, and those available when defining Connector Fields.
Request/Response Data Types #
These data types can be set to define the format of the entire request/response.
Data Type | Description |
---|---|
Unknown | Passes no Content-Type/Accept Header |
Xml | Passes a Content-Type/Accept header of application/xml |
Json | Passes a Content-Type/Accept header of application/json |
Form | Passes a Content-Type/Accept header of application/x-www-form-urlencoded |
File | For uploading a file using multipart/form-data |
PlainText | Passes/returns unformatted text |
SimpleFile | For uploading and downloading files from the body |
MultipartRelated | (Supported for use in Request Only) |
CSV | Use when working with CSV content. Cyclr will operate on the original CSV content, rather than converting it into a JSON equivalent. |
Field formats #
These data types can be set to define the format of the individual fields in the request/response.
Data Type | Description | Example Values |
---|---|---|
Text | Value is a string. | abc |
Boolean | Used for true or false values. | true |
DateTime | Values contain dates and perhaps time parts. Use a Field’s Format property to specify how the value should be formatted. | 2022-04-17T01:34:40.24Z |
Integer | Values are whole numbers. | 123 |
Decimal | Number, rounded to 12 decimal places. | 123.456789012346 |
Float | Number, rounded to 14 decimal places. | 123.45678901234568 |
File | Holds the contents of a file. | n/a |
Undefined | Value will be passed unformatted. | n/a |