jsonAction request
The following properties are part of each jsonAction request message. All are optional except for "action", and "params". APIs often take advantage of the optional properties to implement advanced features.
Example
{
"requestId": "1",
"api": "someApi",
"apiVersion": "1.0",
"action": "someAction",
"params": {},
"responseOptions":
{
"binaryFormat": "hex",
"dataFormat": "objects",
"numberFormat": "string",
"includeFields": [],
"excludeFields": [],
"includePaths": [],
"excludePaths": []
},
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Property summaries
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
action |
The "action" property contains the name of a remote procedure call that the server can execute. |
Required - No default value |
string | |
api |
The "api" property contains the name of an API. |
Optional with default of ""
|
string |
|
apiVersion |
The |
Latest version of the API | string | 0 to 12 bytes |
authToken |
The |
Required - No default value
|
string | 0 to 225 bytes |
debug |
The "debug" property contains the settings for returning any extra debug information. |
Optional with default of "none"
|
string |
|
params |
The |
Optional with default of |
object | 0 or more parameters |
requestId |
The "requestId" property contains any JSON value to identify a message as assigned by the client. |
Optional with default of null
|
string enum |
string number object array Boolean null |
responseOptions |
The
|
Optional with default of null
|
object |
|
|
responseOptions .binaryFormat |
The "binaryFormat" property designates the format of binary values embedded in JSON strings. For more details, see "binaryFormat". |
Optional with default of "hex"
|
string | One of the following: "base64", "hex", or "byteArray". |
|
responseOptions .dataFormat |
The The default value for The enumerated string defines how the server parses a date in a JSON string and how it writes a date into a JSON string. The following key explains the parts of each enumerated value:
UTC datetime format Coordinated Universal Time (UTC) is an industry-standard for dates and times that uses the ISO8601 datetime format:
|
Optional with default of "iso8601"
|
string enum |
|
|
responseOptions .excludeFields |
The "excludeFields" property specifies which fields are excluded in the response message. |
Optional with default of
|
array | |
|
responseOptions .includeFields |
The "includeFields" property specifies which fields are returned in the response message. |
Optional with default of
|
array | |
|
responseOptions .numberFormat |
The |
Optional with default of "number"
|
string |
|