Delete Notification
/mobile/system/notifications/notifications/{id}
Call this operation to delete 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 team member with either the Administrator
or Developer
role.
Request
-
id: integer
The service-generated notification ID.
Response
- application/json
204 Response
400 Response
object
Error
-
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(optional):
array o:errorDetails
Minimum Number of Items:
0
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.
array
0
-
Array of:
object Error Detail
Title:
Error Detail
object
Error Detail
-
instance:
string
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 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