Platform API

<back to all web services

UpdateNotification

Updates an existing notification

Requires Authentication
The following routes are available for this service:
POST/api/notification/update
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eros.Subtle.Canvara.WebAPIModel.ServiceModel
Imports Eros.Causal.Common.Entity

Namespace Global

    Namespace Eros.Causal.Common.Entity

        Public Partial Class Notification
            Public Overridable Property NotificationId As Guid
            Public Overridable Property NotificationGroupId As Guid
            Public Overridable Property NotificationGroupName As String
            Public Overridable Property SuiteId As Guid
            Public Overridable Property SuiteName As String
            Public Overridable Property NotificationValueId As Guid
            Public Overridable Property Roles As List(Of NotificationRole)
            Public Overridable Property RolesToDisplay As String
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property IsMandatory As Boolean
            Public Overridable Property IsCardinality As Boolean
            Public Overridable Property IsSystem As Boolean
            Public Overridable Property IsAudit As Boolean
            Public Overridable Property IsVisibleToRecipients As Boolean
            Public Overridable Property IsSingleUse As Boolean
            Public Overridable Property Email As Boolean
            Public Overridable Property EmailDefault As Boolean
            Public Overridable Property EmailTemplateId As Guid
            Public Overridable Property EmailTemplateBody As String
            Public Overridable Property EmailSubject As String
            Public Overridable Property SMS As Boolean
            Public Overridable Property SMSDefault As Boolean
            Public Overridable Property SMSTemplateId As Guid
            Public Overridable Property SMSTemplateBody As String
            Public Overridable Property UpdateNotification As Boolean
            Public Overridable Property UpdateNotificationDefault As Boolean
            Public Overridable Property UpdateTemplateId As Guid
            Public Overridable Property UpdateTemplateBody As String
            Public Overridable Property UpdateSubject As String
            Public Overridable Property Push As Boolean
            Public Overridable Property PushDefault As Boolean
            Public Overridable Property Phone As Boolean
            Public Overridable Property PhoneDefault As Boolean
            Public Overridable Property ContactIdOwner As Guid
            Public Overridable Property RecordStatus As String
            Public Overridable Property EmailTemplateDefinitionId As Guid
            Public Overridable Property SMSTemplateDefinitionId As Guid
            Public Overridable Property UpdateTemplateDefinitionId As Guid
            Public Overridable Property Index As Integer
        End Class

        Public Partial Class NotificationRole
            Public Overridable Property RoleId As Guid
            Public Overridable Property RoleName As String
        End Class
    End Namespace

    Namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel

        '''<Summary>
        '''Updates an existing notification
        '''</Summary>
        <Api(Description:="Updates an existing notification")>
        Public Partial Class UpdateNotification
            Public Overridable Property Notification As Notification
        End Class
    End Namespace
End Namespace

VB.NET UpdateNotification DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/notification/update HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Notification":{"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}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}