Return an Asset by ID
get
                    /mobile/platform/location/assets/{id}
Retrieves the asset that matches the ID.
Permissions
You can access this operation as a social user, a virtual user, an anonymous user, or a mobile user. If you access this operation as a virtual user or a mobile user, then you must have the role that's associated with the mobile backend.
Request
Path Parameters
                - 
                    id: integer
                    
                    The ID of the asset to be returned. This ID must be an existing asset ID. 
Response
Supported Media Types
                - application/json
200 Response
The asset was retrieved successfully.
                
                
                    Root Schema : Asset
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    AssetThe long format includes all properties. The short format contains only `id`, `name`, `description`, and `label`. The short format applies to `POST /mobile/platform/location/assets` responses only.
    
    
    
    
        Show Source
        - 
            attributes: 
            object  Attributes
            
            Title:AttributesAdditional Properties Allowed: additionalPropertiesThe attributes entered in the UI, as key/value pairs.
- 
            createdBy: 
            string
            User who added the asset.
- 
            createdOn: 
            string
            When the asset was added.
- 
            description: 
            string
            Asset's description.
- 
            devices: 
            array  devices
            
            Minimum Number of Items:0Devices associated with this asset. Typically one device, but there can be multiple devices.
- 
            id: 
            number
            Asset's ID.
- 
            label: 
            string
            Asset's label.
- 
            lastKnownPlace: 
            object  Last Known Location
            
            Title:Last Known LocationLast known location of the asset.
- 
            links: 
            array  Relationship links
            
            Title:Relationship linksMinimum Number of Items:1Unique Items Required:true
- 
            modifiedBy: 
            string
            User who last modified the asset.
- 
            modifiedOn: 
            string
            When the asset was last modified.
- 
            name: 
            string
            User-defined name for the asset.
Nested Schema : Attributes
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
       AttributesAdditional Properties Allowed
       Show Source
       
       
    
    
    
    
    
    
    The attributes entered in the UI, as key/value pairs.
    
    
    
    
        Show Source
        Nested Schema : devices
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayMinimum Number of Items: 
    
    
    
    
    0Devices associated with this asset. Typically one device, but there can be multiple devices.
    
    
    
    
    
        Show Source
        - 
            [0]: 
                object  Associated Location Device
            
            Title:Associated Location DeviceThe properties for an associated location device. Note that this object doesn't contain the `asset` and `place` properties.
Nested Schema : Last Known Location
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Last Known LocationLast known location of the asset.
    
    
    
    
    
    
    
    
    Match One
    Show Source
    
    
    
    
    
Nested Schema : Relationship links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Relationship linksMinimum Number of Items: 
    
    
    
    1Unique Items Required: 
    
    
    
    
    
    
        Show Source
        true- 
            [0]: 
                object  Link
            
            Title:Link
Nested Schema : Associated Location Device
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Associated Location DeviceThe properties for an associated location device. Note that this object doesn't contain the `asset` and `place` properties.
    
    
    
    
        Show Source
        - 
            attributes: 
            object  Attributes
            
            Title:AttributesAdditional Properties Allowed: additionalPropertiesThe attributes entered in the UI, as key/value pairs.
- 
            beacon: 
            object  Beacon
            
            Title:BeaconDevice's identifying information.
- 
            createdBy: 
            string
            User who added the device.
- 
            createdOn: 
            string
            When the device was added.
- 
            description: 
            string
            Device's description.
- 
            id: 
            number
            Device's ID.
- 
            links: 
            array  Relationship links
            
            Title:Relationship linksMinimum Number of Items:1Unique Items Required:true
- 
            modifiedBy: 
            string
            User who last modified the device.
- 
            modifiedOn: 
            string
            When the device was last modified.
- 
            name: 
            string
            User-defined name for the device.
Nested Schema : Beacon
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    BeaconDevice's identifying information.
    
    
    
    
    
    
    
    
    Match One
    Show Source
    
    
    
    
    
Nested Schema : iBeacon
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectiBeacon device.
    
    
    
    
        Show Source
        - 
            major: 
            string
            Device's major version number.
- 
            minor: 
            string
            Device's minor version number.
- 
            uuid: 
            string
            Device's UUID.
Nested Schema : altBeacon
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectAltBeacon device.
    
    
    
    
        Show Source
        - 
            id1: 
            string
            Device's first ID.
- 
            id2: 
            string
            Device's second ID.
- 
            id3: 
            string
            Device's third ID.
Nested Schema : eddystone
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectEddystone device.
    
    
    
    
        Show Source
        - 
            eddystoneUid: 
            object  eddystoneUid
            
            Device's UID.
- 
            eddystoneUrl: 
            object  eddystoneUrl
            
            Device's URL.
Nested Schema : eddystoneUid
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectDevice's UID.
    
    
    
    
        Show Source
        - 
            instance: 
            string
            Individual device's ID.
- 
            namespace: 
            string
            Namespace that the device is a member of.
Nested Schema : gpsPoint
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectGPS point.
    
    
    
    
        Show Source
        - 
            latitude: 
            number
            GPS point's latitude
- 
            longitude: 
            number
            GPS point's longitude.
Nested Schema : Link
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Link- 
            href: 
            string
            A relative URL.
- 
            rel: 
            
            Allowed Values:[ "self", "canonical", "prev", "next" ]The type of link.
Example Response (application/json)
                    {
    "modifiedOn":"2015-08-06T18:37:59.424Z",
    "devices":[
        {
            "modifiedOn":"2015-08-08T07:22:44.654Z",
            "beacon":{
                "iBeacon":{
                    "major":"1.0",
                    "minor":"1.1",
                    "uuid":"B9407F30-F5F8-466E-AFF9-25556B57FE6D"
                }
            },
            "createdBy":"jdoe",
            "name":"RC_WH_01_F01_B001",
            "description":"Beacon on 1st Floor in FixitFast Warehouse in Redwood City",
            "modifiedBy":"tsmith",
            "links":[
                {
                    "rel":"canonical",
                    "href":"/mobile/platform/location/devices/345"
                },
                {
                    "rel":"self",
                    "href":"/mobile/platform/location/devices/345"
                }
            ],
            "attributes":{
                "visibility":"Public",
                "manufacturerId":"10D39AE7-020E-4467-9CB2-DD36366F899D",
                "manufacturer":"Abc Company",
                "status":"Active"
            },
            "id":345,
            "createdOn":"2015-08-06T18:37:59.424Z"
        }
    ],
    "createdBy":"jdoe",
    "lastKnownLocation":{
        "gpsPoint":{
            "latitude":37.5548,
            "longitude":-121.1566
        }
    },
    "name":"FL3256 series 2 #13",
    "description":"Forklift in the FixItFast Warehouse in Redwood City",
    "modifiedBy":"jdoe",
    "links":[
        {
            "rel":"canonical",
            "href":"/mobile/platform/location/assets/111"
        },
        {
            "rel":"self",
            "href":"/mobile/platform/location/assets/111"
        }
    ],
    "attributes":{
        "beaconID":"AE2924505-66045",
        "EquipmentManufacturer":"Abc Company"
    },
    "label":"forklift",
    "id":111,
    "createdOn":"2015-08-06T18:37:59.424Z"
}404 Response
Asset ID not found.
Root Schema : Error
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ErrorThe error JSON object returned by the service.
    
    
    
    
        Show Source
        - 
            detail: 
            string
            Message that provides the error details.
- 
            o:ecid: 
            string
            Execution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
- 
            o:errorCode: 
            string
            The service's error code.
- 
            o:errorDetails: 
            array  o:errorDetails
            
            Minimum Number of Items:0List of the issues that cause the error. Included when the error is caused by multiple issues.
- 
            o:errorPath: 
            string
            The relative point in the API path where the error occurred.
- 
            status: 
            integer
            HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
- 
            title: 
            string
            Summary of the problem.
- 
            type: 
            string
            The URI to the link that provides details about the HTTP status code.
Nested Schema : o:errorDetails
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayMinimum Number of Items: 
    
    
    
    
    0List of the issues that cause the error. Included when the error is caused by multiple issues.
    
    
    
    
    
        Show Source
        - 
            [0]: 
                object  Error Detail
            
            Title:Error Detail
Nested Schema : Error Detail
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error Detail- 
            instance: 
            string
            The URI to the link that provides more detailed information about the error.
- 
            o:errorCode: 
            string
            The service's error code.
- 
            o:errorPath: 
            string
            The relative point in the API path where the error occurred.
- 
            title: 
            string
            Summary of the problem.
- 
            type: 
            string
            The URI to the link that provides details about the HTTP status code.
Examples
This example shows how to use cURL to retrieve information about an asset by submitting a GET request on the REST resource.
curl -i \
-X GET \ 
-u mobile.user@example.com:password \
-H "Content-Type: application/json; charset=utf-8" \
-H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" \
https://fif.cloud.oracle.com/mobile/platform/location/assets/111Example of Response Header
Here's an example of the response header:
200 OK
Content-Length: 1836
Content-Type: application/json
Date: Tue, 16 Jun 2015 01:39:07 GMT
Example of Response Body
This example shows the contents of the response body in JSON format:
{
   "id":111,
   "createdOn":"2015-08-06T18:37:59.424Z",
   "createdBy":"jdoe",
   "modifiedOn":"2015-08-06T18:37:59.424Z",
   "modifiedBy":"jdoe",
   "name":"RC_WH_01_F01_B023",
   "label":"forklift",
   "description":"Forklift in the FixItFast Warehouse in Redwood City",
   "lastKnownLocation":{
      "gpsPoint":{
         "latitude":37.5548,
         "longitude":-121.1566
      }
   },
   "devices":[
      {
         "id":345,
         "createdOn":"2015-08-06T18:37:59.424Z",
         "createdBy":"jdoe",
         "modifiedOn":"2015-08-08T07:22:44.654Z",
         "modifiedBy":"tsmith",
         "name":"RC_WH_01_F01_B001",
         "description":"Beacon in FixitFast Warehouse in Redwood City",
         "beacon":{
            "iBeacon":{
               "uuid":"B9407F30-F5F8-466E-AFF9-25556B57FE6D",
               "major":"1.0",
               "minor":"1.1"
            }
         },
         "attributes":{
            "manufacturer":"Abc Company",
            "manufacturerId":"10D39AE7-020E-4467-9CB2-DD36366F899D",
            "status":"Active",
            "visibility":"Public"
         },
         "links":[
            {
               "rel":"canonical",
               "href":"/mobile/platform/location/devices/345"
            },
            {
               "rel":"self",
               "href":"/mobile/platform/location/devices/345"
            }
         ]
      }
   ],
   "attributes":{
      "EquipmentManufacturer":"Abc Company",
      "beaconID":"AE2924505-66045"
   },
   "links":[
      {
         "rel":"canonical",
         "href":"/mobile/platform/location/assets/111"
      },
      {
         "rel":"self",
         "href":"/mobile/platform/location/assets/111"
      }
   ]
}