Platform API

<back to all web services

GetSuiteNotifications

Get notifications for the specified suite

Requires Authentication
The following routes are available for this service:
All Verbs/api/suitenotifications
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class NotificationRole:
    role_id: Optional[str] = None
    role_name: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Notification:
    notification_id: Optional[str] = None
    notification_group_id: Optional[str] = None
    notification_group_name: Optional[str] = None
    suite_id: Optional[str] = None
    suite_name: Optional[str] = None
    notification_value_id: Optional[str] = None
    roles: Optional[List[NotificationRole]] = None
    roles_to_display: Optional[str] = None
    name: Optional[str] = None
    description: Optional[str] = None
    is_mandatory: bool = False
    is_cardinality: bool = False
    is_system: bool = False
    is_audit: bool = False
    is_visible_to_recipients: bool = False
    is_single_use: bool = False
    email: bool = False
    email_default: bool = False
    email_template_id: Optional[str] = None
    email_template_body: Optional[str] = None
    email_subject: Optional[str] = None
    sms: bool = False
    sms_default: bool = False
    sms_template_id: Optional[str] = None
    sms_template_body: Optional[str] = None
    update_notification: bool = False
    update_notification_default: bool = False
    update_template_id: Optional[str] = None
    update_template_body: Optional[str] = None
    update_subject: Optional[str] = None
    push: bool = False
    push_default: bool = False
    phone: bool = False
    phone_default: bool = False
    contact_id_owner: Optional[str] = None
    record_status: Optional[str] = None
    email_template_definition_id: Optional[str] = None
    sms_template_definition_id: Optional[str] = None
    update_template_definition_id: Optional[str] = None
    index: int = 0


# @ApiResponse(Description="List of suite notifications")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetSuiteNotificationsResponse:
    notifications: Optional[List[Notification]] = None
    response_status: Optional[ResponseStatus] = None


# @Api(Description="Get notifications for the specified suite")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetSuiteNotifications:
    """
    Get notifications for the specified suite
    """

    # @ApiMember(Description="Id of suite to get notifications for", IsRequired=true, Name="SuiteId")
    suite_id: Optional[str] = None
    """
    Id of suite to get notifications for
    """

Python GetSuiteNotifications DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/suitenotifications HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SuiteId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Notifications":[{"NotificationId":"00000000-0000-0000-0000-000000000000","NotificationGroupId":"00000000-0000-0000-0000-000000000000","NotificationGroupName":"String","SuiteId":"00000000-0000-0000-0000-000000000000","SuiteName":"String","NotificationValueId":"00000000-0000-0000-0000-000000000000","Roles":[{"RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String"}],"RolesToDisplay":"String","Name":"String","Description":"String","IsMandatory":false,"IsCardinality":false,"IsSystem":false,"IsAudit":false,"IsVisibleToRecipients":false,"IsSingleUse":false,"Email":false,"EmailDefault":false,"EmailTemplateId":"00000000-0000-0000-0000-000000000000","EmailTemplateBody":"String","EmailSubject":"String","SMS":false,"SMSDefault":false,"SMSTemplateId":"00000000-0000-0000-0000-000000000000","SMSTemplateBody":"String","UpdateNotification":false,"UpdateNotificationDefault":false,"UpdateTemplateId":"00000000-0000-0000-0000-000000000000","UpdateTemplateBody":"String","UpdateSubject":"String","Push":false,"PushDefault":false,"Phone":false,"PhoneDefault":false,"ContactIdOwner":"00000000-0000-0000-0000-000000000000","RecordStatus":"String","EmailTemplateDefinitionId":"00000000-0000-0000-0000-000000000000","SMSTemplateDefinitionId":"00000000-0000-0000-0000-000000000000","UpdateTemplateDefinitionId":"00000000-0000-0000-0000-000000000000","Index":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}