Table of Contents

Method SubmitAttachment

Namespace
Zedal.Sdk.Apis.Diwass
Assembly
Zedal.Sdk.dll

SubmitAttachment(AttachmentBinaryObjectType, ZedalCallContext)

Übergibt ein Binär-Attachment und liefert die vom Server vergebene Kennung zurück.

Achtung: Über diesen Weg kann eine temporäre Kennung der Form ZEDAL_TMP_ATT_ID_<n>_<m> zurückkommen. Die trägt nur für einen Get über denselben Weg — DIWASS kennt sie nicht und lehnt sie als ATTACHMENT-NOT-FOUND ab. Eine zentrale DIWASS-Attachment-Id hat die Form <Ziffern>ATT; prüfe die Form, bevor du die Kennung als attachmentIdentifier an ein Dokument hängst.

Roh-Form, in der Aufrufer das Infotech.Zedal.Documents.V1.Diwass.Waste.Model.V1.AttachmentBinaryObjectType selbst vorbefüllen — inklusive Magic-String-type_id. Für neuen Code den Enum-Overload SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext) bevorzugen.

Task<AttachmentSubmissionResponseType> SubmitAttachment(AttachmentBinaryObjectType attachment, ZedalCallContext context = default)

Parameters

attachment AttachmentBinaryObjectType

Vollständig vorbefülltes Attachment-Objekt.

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task<AttachmentSubmissionResponseType>

SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext)

Übergibt ein Binär-Attachment an DIWASS — Convenience-Form mit typsicherem AttachmentTypeId. Setzt type_id, mime_code, filename und contains_personal_data intern und ruft den Submit-Endpoint auf.

Task<AttachmentSubmissionResponseType> SubmitAttachment(byte[] content, AttachmentTypeId typeId, string mimeCode, string filename, bool containsPersonalData = false, ZedalCallContext context = default)

Parameters

content byte[]

Roh-Bytes der Datei.

typeId AttachmentTypeId

DIWASS-Klassifikator des Attachments.

mimeCode string

MIME-Type (z.B. application/pdf).

filename string

Originaldateiname, wie er DIWASS übergeben wird.

containsPersonalData bool

Flag laut DIWASS-Spec — Default false.

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task<AttachmentSubmissionResponseType>