Delete Multiple Assets

delete

/mobile/system/locationManagement/assets

Deletes all assets that correspond to the IDs provided in the list if they exist.

Permissions

Only team members with the MobileEnvironment_System role can access the Location Management API.

Request

Query Parameters
  • Comma-separated list of IDs of the assets to delete.

Back to Top

Response

Supported Media Types

200 Response

The batch delete request completed. See the response body for individual results.
Body ()
Root Schema : Batch Delete Response
Type: object
Title: Batch Delete Response
Show Source
  • batch
    Minimum Number of Items: 1
    An array of responses for individual delete requests.
Nested Schema : batch
Type: array
Minimum Number of Items: 1
An array of responses for individual delete requests.
Show Source
Nested Schema : Batch Delete Item Response
Type: object
Title: Batch Delete Item Response
Show Source
Nested Schema : Batch Delete Response Item Body
Type: object
Title: Batch Delete Response Item Body
Response body for the item's delete request.
Show Source
Example Response (application/json)
{
    "batch":[
        {
            "body":{
                "id":353,
                "message":"asset was deleted successfully."
            },
            "code":200
        },
        {
            "body":{
                "id":354,
                "message":"asset was deleted successfully."
            },
            "code":200
        },
        {
            "body":{
                "id":355,
                "message":"asset not found."
            },
            "code":404
        }
    ]
}

400 Response

Bad request.

Body ()
Root Schema : Error
Type: object
Title: Error
The error JSON object returned by Mobile Cloud Service.
Show Source
Nested Schema : o:errorDetails
Type: array
Minimum Number of Items: 0
List of the issues that cause the error. Included when the error is caused by multiple issues.
Show Source
Nested Schema : Error Detail
Type: object
Title: Error Detail
Show Source
Back to Top

Examples

This example shows how to use cURL to delete one or more assets by submitting a DELETE request on the REST resource.

curl -i \
-X DELETE \ 
-u administrator@example.com:mypassword \
-H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" \
http://fif.cloud.oracle.com/mobile/system/locationManagement/assets?id=353,354,355

Example of Response Header

Here's an example of the response header:

200 OK
Content-Type: application/json
Date: Mon, 27 Nov 2017 19:15:50 GMT

Example of Response Body

Here's an example of the response body:

{
    "batch":[
        {
            "body":{
                "id":353,
                "message":"asset was deleted successfully."
            },
            "code":200
        },
        {
            "body":{
                "id":354,
                "message":"asset was deleted successfully."
            },
            "code":200
        },
        {
            "body":{
                "id":355,
                "message":"asset not found."
            },
            "code":404
        }
    ]
}
Back to Top