Binary Objects
DataBinary objects are used to import any type of binary data. This may be used in conjuction with the low level API storeupload function, or the data may be embedded directly.
StoreUploaded Objects
When referencing aan storeduploaded binary object, the data object is specified as a string by the server-provided "object_id"
. The object must have been uploaded prior to the API action in which it is being referenced.
Example
{
"file": "<object ID>"
}
Embedded Objects
TheAlternatively, the content of an object may be embedded directly in JSON.JSON API actions.
Text
A text
binary object contains UTF-8 encoded plain text.
Example
{
"file": {
"type": "text",
"content": "<plain text>"
}
}
Base64
A base64
binary object must be encoded with the standard RFC 4648 format.
Example
{
"file": {
"type": "base64",
"content": "<plainbase64 encoded text>"
}
}