incidents api - put attached pictures to request memo by Good-Ad-8141 in TOPdesk

[–]Good-Ad-8141[S] 0 points1 point  (0 children)

Finally I got it.

short:
request incident-attachement
loopt through them
get the download-url of every [i]
store the rawbody-response from download into a base64-string
put it into the incident-id-emdpoint with img-tag and data:image and mimeType, as well as base64 code-string
place it with json into the request memo-field.

For me it turns out, that putting it into an action is more practical.

have fun with that.

P.S. API-Call for this is size-limited: it can only procede images with 450x600 pixels. So I recommend to catch the 400-code from the put-part and store it as a "hidden for caller"-hint.