Use the data property
Use the data property
You should only use the data
property when you want to push 5 MB or less of raw textual item data.
In spite of its limited flexibility, this property is very convenient when performing simple Push API tests, due to its inherent simplicity.
|
Ensure that you properly escape reserved JSON characters (newline, tab, double quote, backslash, etc.) in your |
Use the data property when pushing a single item
The following example shows how you can use the data
property to specify item data when performing a PUT /sources/{sourceId}/documents
HTTP request.
Sample request
|
Request definition
|
|
Request body
|
|
Successful response - 202 Accepted
|
Use the data property when uploading a batch of items
The following example shows how you can use the data
property to specify item data when uploading content into a file container with a PUT uploadUri
HTTP request.
Sample request
|
Request definition
|
|
Request body
|
|
Successful response - 200 OK
|