| All Verbs | /api/contact/{ContactId}/notifications |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactId | path | Guid | Yes | Id of contact to get notifications for |
| LicenseeId | query | Guid | Yes | Id of licensee to get notifications for |
| SuiteId | query | Guid | Yes | Id of suite to get notifications for |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Notifications | form | List<NotificationGroup> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GroupName | form | string | No | |
| Notifications | form | List<NotificationDetails> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| NotificationId | form | Guid | No | |
| NotificationGroupName | form | string | No | |
| NotificationValueId | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| IsMandatory | form | bool | No | |
| IsCardinality | form | bool | No | |
| IsSystem | form | bool | No | |
| IsVisibleToRecipients | form | bool | No | |
| Index | form | int | No | |
| form | InputSwitch | No | ||
| SMS | form | InputSwitch | No | |
| UpdateNotification | form | InputSwitch | No | |
| Push | form | InputSwitch | No | |
| Phone | form | InputSwitch | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Name | form | string | No | |
| IsDisabled | form | bool | No | |
| IsChecked | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/contact/{ContactId}/notifications HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Notifications:
[
{
GroupName: String,
Notifications:
[
{
NotificationGroupName: String,
Name: String,
Description: String,
IsMandatory: False,
IsCardinality: False,
IsSystem: False,
IsVisibleToRecipients: False,
Index: 0,
Email:
{
Id: String,
Name: String,
IsDisabled: False,
IsChecked: False
},
SMS:
{
Id: String,
Name: String,
IsDisabled: False,
IsChecked: False
},
UpdateNotification:
{
Id: String,
Name: String,
IsDisabled: False,
IsChecked: False
},
Push:
{
Id: String,
Name: String,
IsDisabled: False,
IsChecked: False
},
Phone:
{
Id: String,
Name: String,
IsDisabled: False,
IsChecked: False
}
}
]
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}