Display the notification settings for the current user (GET)
Description
|
URL |
scheme://domain:port/platform/ws/notifications/settings |
|
|
Description |
Displays the notification settings for the current user. |
|
|
HTTP Method |
GET |
|
|
Parameters |
None |
|
Request
|
Request |
Request Information |
|
|
Method |
GET |
|
|
Request-URI |
/platform/ws/notifications/settings |
|
|
Request-Header |
Name |
Value |
|
Accept |
application/xml or application/json |
|
|
Message-Body |
Empty |
|
Response
|
Response Code |
|
|
|
Response-Header |
Name |
Value |
|
Content-Type |
application/xml or application/json |
|
|
Message-body |
Success Message |
|
| Failure Message |
If not successful, returns an error message. For additional information, refer to the schema file ./schemas/jobs/error.xsd.
|
|
Example:
# Request
GET /platform/webservice/notifications/settings HTTP/1.1
Host: www.example.org
cookie: platform_token=%s
Content-Type: application/xml
Accept: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UserNotificationSettings>
<UserName>lsfadmin</UserName>
<UserEmail>lsfadmin@example.org</UserEmail>
<AppParam>
<defaultValue>Y</defaultValue>
<id>NOTIFY_ENABLE</id>
<label>Enable notifications</label>
<mandatory>-</mandatory>
<type></type>
<value>Y</value>
</AppParam>
<AppParam>
<defaultValue>START,END,SUSPENDED,EXIT</defaultValue>
<id>NOTIFY_EVENTS</id>
<label>Workload events</label>
<mandatory>-</mandatory>
<type></type>
<value>START,END,SUSPENDED,EXIT</value>
</AppParam>
<AppParam>
<defaultValue>BROWSER,EMAIL</defaultValue>
<id>NOTIFY_CHANNELS</id>
<label>Notification channels</label>
<mandatory>-</mandatory>
<type></type>
<value>BROWSER,EMAIL</value>
</AppParam>
</UserNotificationSettings>
# Response
200 Successful