최근 검색
최근 검색 없음
How to upload inline images when creating macros with the API
2022년 1월 20일에 게시됨
I'm creating several hundred macros via the API.
I know how to create and associate macro attachments, but I'm a little less clear on how to attach inline images to a macro.
I can use the standard ticket attachments endpoint to upload a file. In fact, it looks like this is what Zendesk does when you drag an image into the edit window of the create macro interface.
But I'm not sure how to associate the attachment with the macro after that.
Basically, I want to make sure that the inline images won't expire after 3 days. But I don't want the images to appear as downloadable attachments when the macro is applied to a comment.
1
1
댓글 1개
Tipene Hughes
Hi Roy Janik,
Thanks for reaching out!
Macros don’t have a way for specifying inline image attachments via API, unfortunately. One possible work around to this could be using dynamic content and specifying the image in markdown e.g:
You could then add a dynamic content placeholder in the comment body of the macro which would display the previously specified image as an inline attachment.
I hope this helps! Feel free to reach out with any questions.
Tipene
0
댓글을 남기려면 로그인하세요.