Skip to main content

Grain Cart - Upload

When accessing /GrainCart via POST, the Slingshot API Server will expect the request body to consist of a file with GRC extension that contains Grain Cart data from a bridge device.

The request body should be encoded using multipart/form-data standards with the following entry defined:

  • FileName: this entry will contain the file contents as well as the name of the file

If successful, the Slingshot API Server will respond with a HTTP 201 Created message and the URI of the newly created Grain Cart data. The returned URI can be used to retrieve the details of the Job Data.

HTTP Method and URL

POST https://api.ravenslingshot.com/graincart

URL Parameters

None.

HTTP Query Parameters

To learn more about these parameters, read about Result Set Paging.

ParameterDescription
pagesize[Optional] Number of rows to return for a result page.
page[Optional] Specific result page to return.

HTTP Headers

To learn more about these parameters, read about Authentication.

HeaderDescription
X-SS-AccessKey[Required] Token issued to a Slingshot user from the Raven Slingshot Portal Server.
X-SS-APIKey[Required] Token issued to the Slingshot developer from Raven.
X-SS-Signature[Required] The signature generated for a specific request.
X-SS-TimeStamp[Required] The timestamp of when the request was generated.

Sample Responses

HTTP

User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------12217651423230
Content-Length: 40351

-----------------------------12217651423230
Content-Disposition: form-data; name="FileName"; filename="uHarvest-2f23.GRC"
Content-Type: text/plain

(rest of plain text contents)

-----------------------------12217651423230--