Add content benyttes til å laste opp innholdet på selve dokumentet. Sett HTTP-Headeren Content-type korrekt: om du laster opp en pdf-fil skal den være satt til application/pdf.
Add content is used to send the actual content of the document. Make sure to set the http header Content-type correct: if you are sending a PDF document, Content-type should be application/pdf.
https://api.digipost.no/messages/{message_id}/attachment/{attachment_id}/content
http post
Content-Type: application/octet-stream <PDF i binær form>
Content-Type: application/octet-stream <PDF in binary format>
200 Content-Type: application/vnd.digipost-v5+xmlminMeldingsId DIGIPOST COMPLETE ab191db7-2f6c-467f-89d2-f6c6a3617bbd Dokumentets emne PASSWORD NORMAL false /w16Ah94BPe3VRsr5w7rgF8aTa2EUtVkK0f2+LLoE+k=