API reference
API reference for the table to JSON transform method
Abstract
API reference for the table to JSON transform method
Request examples
Minimal request example
{ "api": "hub", "authToken": "AuthorizedToken", "action": "createTransform", "params": { "transformName": "TestTransform1", "transformActions": [ { "inputFields": [ "In1" ], "outputFields": [ "Out1" ], "transformActionName": "tableFieldsToJson", "transformParams": {} } ] } }
{ "api": "hub", "apiVersion": "1.0", "requestId": "00000006", "authToken": "AuthorizedToken", "action": "createTransform", "params": { "transformName": "TestTransform1", "transformActions": [ { "inputFields": [ "In1", "In2", "In3", "In4", "In5" ], "outputFields": [ "Out1" ], "transformActionName": "tableFieldsToJson", "transformParams": { "metadata": { "myTag": "my data" } } } ] }, "responseOptions": { "binaryFormat": "base64", "dataFormat": "arrays", "numberFormat": "number" } }
Response example
{ "authToken": "AuthorizedToken", "result": {}, "requestId": "00000003", "errorCode": 0, "errorMessage": "" }
"params"
The "params"
property is an object that contains an action's parameters. Each action defines its own required and optional properties.
Property summary
Table 1.
"params"
property summariesProperty | Description | Default | Type | Limits | ||
---|---|---|---|---|---|---|
specifies | Required - No default value | array of objects | ||||
| specifies the name of a transform process | Required - No default value | string |
|
The "transformActions"
property is an optional array of "transformAction"
objects. It defaults to an empty array.