support

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

Attach a file to a ticket message.

Wszystkie punkty końcowe support

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie tickets.reply; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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.

Parametry

NazwaTypWymaganeCo to jest
ticketId (path)UuidTakThe ticket's id.
messageId (path)UuidTakThe message the file belongs to.

Odpowiedź

NazwaTypWymaganeCo to jest
idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
filenamestringTakThe name the uploader's machine gave it. ⛔ Display only — it is attacker-controlled text and is never used to build a storage path.
content_typestringTak
size_bytesintegerTak
scan_statestring<pending, clean, infected, error>Takpending — 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
downloadablebooleanTakWhether these bytes may be served. True only for clean.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422 · 429