Vai al contenuto

Add a batch attachment

Richiesta

Adds a single attachment to the batch by uploading it as multipart/form-data. The attachment is included in emails generated from the batch. Upload exactly one nonempty file and set its filename and media type on the Content part. The single-message limits apply when individual items are submitted.

Sicurezza
basicAuth
Percorso
BatchIdstring, (uuid)obbligatorio
Corpomultipart/form-dataobbligatorio
Contentstring, (binary)obbligatorio

The attachment file content.

DisplayNamestring
ContentIdstring
ContentDescriptionstring
ContentDispositionstring
ContentLocationstring
ContentEncodingstring
IncludeOnAffidavitsboolean

Validated on upload. Do not rely on this flag to include the file in individual EviMail affidavits.

curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.evicertia.com/v2/EviMail/Batches/{BatchId}/Attachments' \
  -H 'Content-Type: multipart/form-data' \
  -F Content=@Content.bin \
  -F DisplayName=string \
  -F ContentId=string \
  -F ContentDescription=string \
  -F ContentDisposition=string \
  -F ContentLocation=string \
  -F ContentEncoding=string \
  -F IncludeOnAffidavits=true

Risposte

Attachment added.

Corpoapplication/json
AttachmentIdstring, (uuid)
Risposta
{ "AttachmentId": "023c30eb-308f-4243-9398-ac795300a3cb" }