Base64ContentsStringBase64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/
ContentTypeStringOptional contentType for file. For instance application/pdf[optional]
FilenameStringOptional filename to save upload with. Will be the name that is shown in email clients[optional]


  • Prepare the resource
$UploadAttachmentOptions = Initialize-maislurp-client-powershellUploadAttachmentOptions  -Base64Contents null `
 -ContentType null `
 -Filename null
  • Convert the resource to JSON
$UploadAttachmentOptions | ConvertTo-JSON

[Back to Model list] [Back to API list] [Back to ]