Delete Notification
delete
/mobile/system/notifications/notifications/{id}
Deletes a notification. You can delete a notification only if its status is Scheduled
.
If you are using BASIC authorization, and the notification is for a different mobile backend, then the Oracle-Mobile-Backend-ID
header must identify that mobile backend, and not the backend that your app is associated with.
Permissions
To access this operation, you must be a team member with the MobileEnvironment_Notifications
role.
Request
Path Parameters
-
id: integer
The service-generated notification ID.
Response
Supported Media Types
- application/json
204 Response
The notification was deleted or doesn't exist. No content is returned.
400 Response
The notification ID is missing or can't delete the notification.
Root Schema : Error
Type:
object
Title:
Error
The error JSON object returned by Mobile Cloud 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
Mobile Cloud Service error code.
-
o:errorDetails(optional):
array o:errorDetails
Minimum Number of Items:
0
List 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:
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
-
Array of:
object Error Detail
Title:
Error Detail
Nested Schema : Error Detail
Type:
object
Title:
Show Source
Error Detail
-
instance:
string
The URI to the link that provides more detailed information about the error.
-
o:errorCode:
string
Mobile Cloud Service 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 cancel a scheduled notification by submitting a DELETE request on the REST resource.
curl -i \ -X DELETE \ -u team.user@example.com:password \ -H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" \ http://fif.cloud.oracle.com/mobile/system/notifications/notifications/3
Example of Response Header
Here's an example of the response header. The HTML status 204
indicates that the notification was either deleted or it didn't exist:
204 NO_CONTENT Date: Tue, 23 Jun 2015 00:21:33 GMT