Update Place
/mobile/system/locationManagement/places/{id}
Updates the place that matches the ID.
Permissions
Only team members with the Administrator role can access the Location Management API.
Request
- application/json
- 
                    id: integer
                    
                    The ID of the place. This ID must be an existing place ID. 
objectUpdate Place- 
            address: 
            object  Place's Address
            
            Title:Place's AddressGPS address of the place.
- 
            attributes: 
            object  Attributes
            
            Title:AttributesAdditional Properties Allowed: additionalPropertiesThe attributes entered in the UI, as key/value pairs.
- 
            description: 
            string
            Place's description.
- 
            devices: 
            array  devices
            
            Minimum Number of Items:0IDs of devices that are associated with this place. Typically one device, but there can be multiple devices.
- 
            label: 
            string
            Place's label.
- 
            name: 
            string
            User-defined name for the place. Must be unique.
- 
            parentPlace: 
            number
            Place ID of the place's parent.
objectPlace's AddressobjectAttributesarray0object- 
            latitude: 
            number
            GPS point's latitude
- 
            longitude: 
            number
            GPS point's longitude.
object- 
            latitude: 
            number
            Latitude of the center of the GPS circle.
- 
            longitude: 
            number
            Longitude of the center of the GPS circle.
- 
            radius: 
            number
            GPS circle's radius in meters.
object- 
            vertices: 
            array  vertices
            
            Minimum Number of Items:1GPS polygon's vertices.
array1- 
            [0]: 
                object  latitudeLongitudePair
            
            Pair of latitude and longitude values for a place.
object- 
            latitude: 
            number
            Place's latitude.
- 
            longitude: 
            number
            Place's longitude.
{
    "address":{
        "gpsPoint":{
            "latitude":37.5548,
            "longitude":-121.1566
        }
    },
    "devices":[
        1111
    ]
}Response
- application/json
200 Response
objectPlace- 
            address: 
            object  Place's Address
            
            Title:Place's AddressGPS address of the place.
- 
            attributes: 
            object  Attributes
            
            Title:AttributesAdditional Properties Allowed: additionalPropertiesThe attributes entered in the UI, as key/value pairs.
- 
            children: 
            array  children
            
            Minimum Number of Items:0Places that are the child places of this place. This includes the full hierarchy of places that descend from this place.
- 
            createdBy: 
            string
            User who added the place.
- 
            createdOn: 
            string
            When the place was added.
- 
            description: 
            string
            Place's description.
- 
            devices: 
            array  devices
            
            Minimum Number of Items:0Devices associated with this place. Typically one device, but there can be multiple devices.
- 
            hasChildren: 
            boolean
            Set to `true` if this place is a parent of other places.
- 
            id: 
            number
            Place's ID.
- 
            label: 
            string
            Place's label.
- 
            links: 
            array  Relationship links
            
            Title:Relationship linksMinimum Number of Items:1Unique Items Required:true
- 
            modifiedBy: 
            string
            User who last modified the place.
- 
            modifiedOn: 
            string
            When the place was last modified.
- 
            name: 
            string
            User-defined name for the place.
- 
            parentPlace: 
            number
            Place ID of the place's parent.
objectPlace's AddressobjectAttributesarray0- 
            [0]: 
                object  Place
            
            Title:PlaceThe created or updated place.
array0- 
            [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.
arrayRelationship links1true- 
            [0]: 
                object  Link
            
            Title:Link
object- 
            latitude: 
            number
            GPS point's latitude
- 
            longitude: 
            number
            GPS point's longitude.
object- 
            latitude: 
            number
            Latitude of the center of the GPS circle.
- 
            longitude: 
            number
            Longitude of the center of the GPS circle.
- 
            radius: 
            number
            GPS circle's radius in meters.
object- 
            vertices: 
            array  vertices
            
            Minimum Number of Items:1GPS polygon's vertices.
array1- 
            [0]: 
                object  latitudeLongitudePair
            
            Pair of latitude and longitude values for a place.
object- 
            latitude: 
            number
            Place's latitude.
- 
            longitude: 
            number
            Place's longitude.
objectAssociated Location Device- 
            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.
objectBeaconobject- 
            major: 
            string
            Device's major version number.
- 
            minor: 
            string
            Device's minor version number.
- 
            uuid: 
            string
            Device's UUID.
object- 
            id1: 
            string
            Device's first ID.
- 
            id2: 
            string
            Device's second ID.
- 
            id3: 
            string
            Device's third ID.
object- 
            eddystoneUid: 
            object  eddystoneUid
            
            Device's UID.
- 
            eddystoneUrl: 
            object  eddystoneUrl
            
            Device's URL.
object- 
            instance: 
            string
            Individual device's ID.
- 
            namespace: 
            string
            Namespace that the device is a member of.
objectLink- 
            href: 
            string
            A relative URL.
- 
            rel: 
            
            Allowed Values:[ "self", "canonical", "prev", "next" ]The type of link.
{
    "address":{
        "gpsPoint":{
            "latitude":37.5548,
            "longitude":-121.1566
        }
    },
    "devices":[
        {
            "modifiedOn":"2016-03-03T21:31:28.758+0000",
            "beacon":{
                "iBeacon":{
                    "major":"1.0",
                    "minor":"1.1",
                    "uuid":"B9407F30-F5F8-466E-AFF9-25556B57FE6D"
                }
            },
            "createdBy":"jdoe",
            "name":"RC_WH_01_F01_B004",
            "description":"Beacon on 1st Floor in FixitFast Warehouse in Redwood City",
            "modifiedBy":"jdoe",
            "links":[
                {
                    "rel":"canonical",
                    "href":"/mobile/platform/location/devices/1111"
                },
                {
                    "rel":"self",
                    "href":"/mobile/platform/location/devices/1111"
                }
            ],
            "id":1111,
            "createdOn":"2016-03-03T21:31:28.758+0000",
            "properties":{
                "visibility":"Public",
                "manufacturerId":"10D39AE7-020E-4467-9CB2-DD36366F899D",
                "manufacturer":"Gimbal",
                "status":"Active"
            }
        }
    ],
    "description":"FixitFast Warehouse in Redwood City",
    "label":"FixitFast Warehouse",
    "createdOn":"2015-08-06T18:37:59.424Z",
    "modifiedOn":"2015-08-06T18:37:59.424Z",
    "createdBy":"jdoe",
    "parentPlace":42,
    "name":"FixitFast Redwood City Warehouse",
    "modifiedBy":"jdoe",
    "links":[
        {
            "rel":"canonical",
            "href":"/mobile/platform/location/places/111"
        },
        {
            "rel":"self",
            "href":"/mobile/platform/location/places/111"
        }
    ],
    "id":111,
    "properties":{
        "equipmentManufacturer":"Abc Corp"
    }
}400 Response
Bad request.
objectError- 
            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.
array0- 
            [0]: 
                object  Error Detail
            
            Title:Error Detail
objectError 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.
404 Response
Place ID not found.
objectError- 
            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.
array0- 
            [0]: 
                object  Error Detail
            
            Title:Error Detail
objectError 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
The following example shows how to update a place by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -i -X PUT -u administrator@example.com:password -d update.json -H "Content-Type: application/json; charset=utf-8" -H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" https://fif.cloud.oracle.com/mobile/system/locationManagement/places/32
Example of Request Body
The following example shows the contents of the request body. This example associates the place with a parent place.
{
    "parentPlace": 51
}
 Example of Response Header
The following shows an example of the response header.
200 OK Content-Length: 955 Content-Type: application/json Date: Fri, 22 Sep 2017 00:08:29 GMT
Example of Response Body
The following example shows, in JSON format, the contents of the response body with the new parent place:
{
    "id": 32,
    "createdOn": "2017-09-19T23:23:43.238Z",
    "createdBy": "administrator",
    "modifiedOn": "2017-09-22T00:50:17.360Z",
    "modifiedBy": "administrator",
    "name": "l1b1",
    "label": "lot 1 block 1",
    "parentPlace": 51,
    "description": "Lot 1 block 1 New City",
    "hasChildren": false,
    "address": {
        "gpsCircle": {
            "longitude": -120.8745,
            "latitude": 37.9856,
            "radius": 29999.99999998
        }
    },
    "attributes": {
        "acres": ".25"
    },
    "links": [
        {
            "rel": "canonical",
            "href": "/mobile/platform/location/places/32"
        },
        {
            "rel": "self",
            "href": "/mobile/platform/location/places/32"
        }
    ]
}