How to put an image inline in MessageEntity HtmlBody, using the REST API?

Hi everybody.

I'm trying to let the user of this application create a message on a ticket, containing inline images, but i'm not really sure how to pull that off.

 

I can extract the attachments on a message without any problem, and if i GET a TicketMessage, i also get html containing images if these images have been inserted via SuperOffice (displayed using a customer.fcgi/getAttachment link)

 

But if i upload an attachment myself, how can i get the public customer.fcgi/getAttachment link in order to embed the image into the html message? I noticed SuperOffice creates this link when manually creating a message with inline images in Service, but finding an equivalent REST function does not seem to exist.

As far as i can tell, i can only get meta data of the attachment, or the file stream itself.

I have tried using this to get the information on the attachment itself https://docs.superoffice.com/api/reference/restful/rest/Attachment/v1AttachmentEntity_GetAttachmentEntity.html

and this to get the stream

https://docs.superoffice.com/api/reference/restful/rest/Attachment/v1AttachmentEntity_GetAttachmentStream.html 

 

 

I hope the question is clear. Thanks :)

RE: How to put an image inline in MessageEntity HtmlBody, using the REST API?

Anyone? :)

Av: Dennis Mortensgaard 28. sep 2021