Description
Change the read status of the notification.
Request URL
billing API v1
PUT /v1/{tenant_id}/notifications/{notification_code}
Request Paramters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | User Token | header | |
| tenant_id | Tenant ID | URI | |
| notification_code | Information Code | URI | |
| read_status | [“Unread”|“ReadTitleOnly”|“Read”] | plain |
Request Json
{
"information": {
"read_status": “Read”
}
}
Example
curl -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: e6c83a30eec54332939cdbe363b7fadf" \
-d '{"notification": {"read_status": "Read"}}' \
https://account.tyo1.cloud.z.com/v1/487727e3921d44e3bfe7ebb337bf085e/notifications/1
HTTP/1.1 200 OK
Date: Wed, 24 Dec 2014 04:14:20 GMT
Server: Apache
Content-Length: 2092
Content-Type: application/json
{
"notification": {
"notification_code": 20150506,
"type": null,
"title": "Z.com to offer Service Level Agreement(SLA)",
"contents": "Z.com starts to offer Service Level Agreement(SLA)",
"read_status": "Read",
"start_date": "2015-05-06T21:51:00"
}
}