Trendsic Platform Service

<back to all web services

NotificationAttachmentRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/NotificationAttachment/{NotificationAttachmentId}
GET,POST,PUT,DELETE,OPTIONS/v1/NotificationAttachment
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type NotificationAttachment() = 
        member val NotificationAttachmentId:Int32 = new Int32() with get,set
        member val NotificationMessageId:Int32 = new Int32() with get,set
        member val Attachment:Byte[] = [||] with get,set
        member val FileName:String = null with get,set
        member val MimeType:String = null with get,set
        member val FileSizeInKB:Double = new Double() with get,set
        member val DateCreated:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type NotificationAttachmentResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val NotificationAttachment:ResizeArray<NotificationAttachment> = new ResizeArray<NotificationAttachment>() with get,set

    [<AllowNullLiteral>]
    type NotificationAttachmentRequest() = 
        member val NotificationAttachment:ResizeArray<NotificationAttachment> = new ResizeArray<NotificationAttachment>() with get,set

F# NotificationAttachmentRequest 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 /v1/NotificationAttachment/{NotificationAttachmentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"NotificationAttachment":[{"NotificationAttachmentId":0,"NotificationMessageId":0,"Attachment":"AA==","FileName":"String","MimeType":"String","FileSizeInKB":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"NotificationAttachment":[{"NotificationAttachmentId":0,"NotificationMessageId":0,"Attachment":"AA==","FileName":"String","MimeType":"String","FileSizeInKB":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}