-
Notifications
You must be signed in to change notification settings - Fork 0
wepow:notifications
Andres Freyria edited this page Sep 25, 2013
·
1 revision
Collection resource consisting of all the wepow:notification resources for the current API key.
Name | Type | Description |
---|---|---|
count | Number | The total number of wepow:notification resources. |
<tr>
<td><a href='/docs/wepow%3Anotification'>wepow:notification</a></td>
<td>Individual notifications for the API key</td>
</tr>
Relation | Description |
---|---|
self | The resource full representation |
{
"count" : 1,
"_embedded" : {
"wepow:notification": [
{
"id": "50cbad05a8326c0358000007",
"callback_url": "http://sample.url/endpoint",
"target": "application_status",
"active": true,
"_links": {
"self": {
"href": "/hypermedia/notifications/50cbad05a8326c0358000007"
}
}
}
]
},
"_links" : {
"self" : { "href" : "/notifications" }
}
}
- 200: The resource representation is returned.
The desired values for the new wepow:notification properties.
Sample request:
{ "callback_url" : "https://sample.com/endpoint", "target": "application_status", ... }
- 204: The resource has been updated.
- 422: The input was invalid.