| PUT | /v1/c/notifications |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class CustomerNotificationsResponse
Public Overridable Property Audience As String
Public Overridable Property Items As List(Of NotificationPrefView) = New List(Of NotificationPrefView)
Public Overridable Property Devices As Integer
Public Overridable Property PushConfigured As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class CustomerNotificationsSaveRequest
Public Overridable Property Audience As String
Public Overridable Property Items As List(Of NotificationPrefInput) = New List(Of NotificationPrefInput)
End Class
Public Partial Class NotificationPrefInput
Public Overridable Property Key As String
Public Overridable Property IsOn As Boolean
End Class
Public Partial Class NotificationPrefView
Public Overridable Property Key As String
Public Overridable Property Label As String
Public Overridable Property [Sub] As String
Public Overridable Property IsOn As Boolean
End Class
End Namespace
End Namespace
VB.NET CustomerNotificationsSaveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/c/notifications HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Audience":"String","Items":[{"Key":"String","IsOn":false}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Audience":"String","Items":[{"Key":"String","Label":"String","Sub":"String","IsOn":false}],"Devices":0,"PushConfigured":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}