Difference between revisions of "Get Asset History By Serial Number"
From MyMobileWorkers API
(→Response Parameters) |
(→Example response) |
||
| Line 83: | Line 83: | ||
== Example response == | == Example response == | ||
<source lang="java"> | <source lang="java"> | ||
| − | + | { | |
| − | + | "location":"aPlace2", | |
| − | + | "status":{ | |
| − | + | "external_id":null, | |
| − | + | "name":"test" | |
| − | + | }, | |
| − | + | "description":"describingwords", | |
| − | + | "item":{ | |
| − | + | "external_id":null, | |
| − | + | "category":"test3", | |
| − | + | "name":"Woo" | |
| − | + | }, | |
| − | + | "serial_number":"serialNo456", | |
| − | + | "created_at":1376650412900, | |
| − | + | "last_updated_by":null, | |
| − | + | "external_id":"sss32", | |
| − | + | "last_scanned_by":null, | |
| − | + | "job":{ | |
| − | + | "job_ number":"123" | |
| − | + | }, | |
| − | + | "customer":{ | |
| − | + | "name":"john" | |
| − | + | }, | |
| − | + | "custom_fields":{ | |
| − | + | "testFieldName3":"testFieldValue3", | |
| − | + | "testFieldName2":"testFieldValue2", | |
| − | + | "testFieldName1":"testFieldValue1" | |
| − | + | }, | |
| − | + | "branch":{ | |
| − | + | "name":"DarrenDevTest" | |
| − | + | } | |
| − | + | } | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
</source> | </source> | ||
Revision as of 11:08, 16 August 2013
Contents |
Summary
| Asset History | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/assets/asset/history?api_key=YOUR_KEY&serial_number=SERIAL_NUMBER | |
| Type | GET | |
| Params: | api_key | required |
| serial_number | required | |
| Response | JSON | |
The Get Asset History method returns the asset history entries corresponding to the asset serial number specified.
Response Parameters
| Field | Description |
|---|---|
| asset | The asset the history is associated with |
| created_at | Date asset was created |
| custom_fields | Asset custom fields |
| customer | Customer the asset is linked to |
| description | Asset description |
| external_id | Asset external id |
| item | Contains the name, category and external id of the item the asset is linked to |
| job | Job the asset is linked to |
| last_scanned_by | User who last scanned asset |
| last_updated_by | User who last updated asset |
| location | Asset location |
| photos | Photos associated with the asset history |
| serial_number | Asset serial number |
| status | Contains both external id and status name for asset status |
| branch | Branch the asset is linked to |
Example response
{ "location":"aPlace2", "status":{ "external_id":null, "name":"test" }, "description":"describingwords", "item":{ "external_id":null, "category":"test3", "name":"Woo" }, "serial_number":"serialNo456", "created_at":1376650412900, "last_updated_by":null, "external_id":"sss32", "last_scanned_by":null, "job":{ "job_ number":"123" }, "customer":{ "name":"john" }, "custom_fields":{ "testFieldName3":"testFieldValue3", "testFieldName2":"testFieldValue2", "testFieldName1":"testFieldValue1" }, "branch":{ "name":"DarrenDevTest" } }