support

POST /v1/tickets/{ticketId}/messages/{messageId}/attachments

Attach a file to a ticket message.

ټول support پای ټکي

ټول د پراختیا کونکي اسناد

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د tickets.reply اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

curl -X POST https://api.zinndigital.com/v1/tickets/{ticketId}/messages/{messageId}/attachments \
  -H "Authorization: Bearer zdk_live_…"

ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ

تفصیلات

Uploads one file and records it against the message. The file is accepted immediately and is not downloadable by anyone — including staff — until a malware scan has passed (scan_state: clean). ⛔ Only the types on the allow-list are accepted, and the declared content type is verified against the file's own leading bytes: a .png beginning MZ is refused whatever the header says. Maximum 25 MB. Requires tickets.reply.

پارامترونه

نومډولاړیندا څه شی دی
ticketId (path)UuidهوThe ticket's id.
messageId (path)UuidهوThe message the file belongs to.

ځواب

نومډولاړیندا څه شی دی
idUuidهوUUIDv7 identifier — sortable by creation time (docs/02 §8).
filenamestringهوThe name the uploader's machine gave it. ⛔ Display only — it is attacker-controlled text and is never used to build a storage path.
content_typestringهو
size_bytesintegerهو
scan_statestring<pending, clean, infected, error>هوpending — uploaded, not yet scanned. clean — the only servable state. infected — the scanner found something; the row survives as evidence and the bytes never leave. error
downloadablebooleanهوWhether these bytes may be served. True only for clean.

تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي

401 · 403 · 404 · 422 · 429