Generic Interface trying to POST ticket with attachments

Moderator: crythias

Locked
Ballzer0
Znuny newbie
Posts: 14
Joined: 12 Nov 2018, 16:54
Znuny Version: 6.0.12
Real Name: Tommy Ballo

Generic Interface trying to POST ticket with attachments

Post by Ballzer0 »

Hi!
im testing out the possibility of sending attachments to OTRS over the REST api.

im using postman and it works fine when im doing a raw post, but if i try to post using form-data, all i get is Error while decoding request content

im not sure if there is anything in otrs i need to configure to make it work. or if my request is just wrong.

Image

Thanks in advance for looking at my post
Ballzer0
Znuny newbie
Posts: 14
Joined: 12 Nov 2018, 16:54
Znuny Version: 6.0.12
Real Name: Tommy Ballo

Re: Generic Interface trying to POST ticket with attachments

Post by Ballzer0 »

Turns out i didnt read the spesification clearly. I should not post attachments as multiform data but rather convert attachment to base64 strings.
Locked