User Tools

Site Tools


api:helpcenter:message:id:attachments

API : Helpcenter Case Attachments

Introduction

Fetches a list of attachments linked to a message (email) in Microsoft Graph.

Request

URL https://api.telecomx.dk/helpcenter/message/MESSAGE_ID/attachments
Method GET
Access level RESELLER_ADMIN with HELPCENTER feature, or ADMIN.
Param MESSAGE_ID Id of the message (Microsoft Graph message id).

Query example

https://api.telecomx.dk/helpcenter/message/AAMkAGI2TAAA=/attachments

Response

JSON object
attachments Array Array of attachments, see definition below.
attachments[].id String Id of the attachment, given by Graph.
attachments[].name String Name of the attachment - image.png, invoice.pdf, etc.
attachments[].contentType String Content type of the attachment: image/png, application/pdf, etc.
attachments[].isInline Boolean True if the attachment is inline in the message.

Example

{
  "attachments": [
    {
      "id": "AAMkAGI2AttachmentA=",
      "name": "invoice.pdf",
      "contentType": "application/pdf",
      "isInline": false
    },
    {
      "id": "AAMkAGI2AttachmentB=",
      "name": "logo.png",
      "contentType": "image/png",
      "isInline": true
    }
  ]
}

Errors

Error code Message Description
400 messageId Invalid messageId
404 helpcenter Helpcenter not found
401 helpcenter Access token expired
404 attachments No attachments found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/helpcenter/message/id/attachments.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki