List Files
GET
- owningOrganization: View the org that owns the file.
- partnerships: View the partners this file is shared with.
OAuth Scope Required: files,ag3
Request URI
GET https://sandboxapi.deere.com/platform/files
Accept: application/vnd.deere.axiom.v3+json
Parameters
Parameter | Type | Description & Example | Default | In |
---|---|---|---|---|
filter Optional | string | Takes ALL or MACHINE. ALL shows all the files in the org. MACHINE shows only the files sent from a machine to the host. Example: MACHINE | ALL | query |
fileType1 Optional | integer | Takes the file type number. Example: 0 | N/A | query |
transferable Optional | boolean | Filters by whether a file is transferable Example: true | N/A | query |
x-deere-signature Optional | string | x-deere-signature should be managed by the client per user per API. For a new user/new API, the first request will have a blank value for x-deere-signature. Changes can be tracked with the x-deere-signature returned in the response. If the response has not changed since the last API call, the value of x-deere-signature is not changed and the client should use the same String Token next time. Example: 520122365ebb4870a344784570d202c7 | header |
Response Details
Field | Type | Description & Example |
---|---|---|
x-deere-signature | string | A new x-deere-signature response header will be included if the response has changed since last api call. Example: 520122365ebb4870a344784570d202c7 |
id | string | The id of the file. Example: 577499742 |
name | string | The name of the file. Example: back40.zip |
type1 | string | The type of the file. Example: SETUP |
createdTime2 | datetime | Time at which the file was created. Example: 2015-02-03T10:42:24.282Z |
modifiedTime2 | datetime | Time at which the file was last modified. Example: 2015-02-03T10:42:24.282Z |
nativeSize | integer | Size of the file. Example: 72946 |
source | string | Account with which the file was created. Example: JohnDoe |
transferPending | boolean | Indicates whether the file is currently in a pending transfer to a machine. Example: false |
visibleViaShare | string | Indicates whether you own the file, or it was shared with you. The value will be either "owned" or "manual". Example: owned |
shared | boolean | Indicates whether the file is shared with another org. Example: false |
status | string | Indicates whether the file can be transferred to a machine. Possible values are: Upload Pending, Ready, and In Progress. Example: UPLOAD_PENDING |
archived | boolean | Indicates whether the file has been archived. Example: false |
newDEPRECATED | boolean | Indicates whether the file is new. Example: false |
format | string | Indicates the plugin type. Example: IntegraVersaPlugin |
manufacturer | string | Indicates the manufacturer. Example: AgLeader |
Sample Response [JSON]
Content-Type: application/vnd.deere.axiom.v3+json
x-deere-signature: 520122365ebb4870a344784570d202c7
{ "links": [ { "rel": "self", "uri": "https://sandboxapi.deere.com/platform/files" } ], "total": 1, "values": { "links": [ { "rel": "self", "uri": "https://sandboxapi.deere.com/platform/files" } ], "total": 1, "values": [ { "links": [ { "rel": "owningOrganization", "uri": "https://sandboxapi.deere.com/platform/organizations/1234" }, { "rel": "partnerships", "uri": "https://sandboxapi.deere.com/platform/files/466578633/partnerships" }, { "rel": "self", "uri": "https://sandboxapi.deere.com/platform/files/466578633" } ], "id": "577499742", "name": "back40.zip", "type": "SETUP", "createdTime": "2013-01-04T14:08:51.104Z", "modifiedTime": "2013-01-04T14:08:51.104Z", "nativeSize": "72946", "source": "JohnDoe", "transferPending": "false", "visibleViaShare": "owned", "shared": "false", "status": "UPLOAD_PENDING", "archived": "false", "assigned": "false", "new": "false" } ] } }