support

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

Attach a file to a ticket message.

Sve support krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu tickets.reply; ključ bez nje se odbija sa 403, a ne sa 404.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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`.

Parametri

NazivVrstaObaveznoŠta je ovo
ticketId (path)UuidDaThe ticket's id.
messageId (path)UuidDaThe message the file belongs to.

Odgovor

NazivVrstaObaveznoŠta je ovo
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
filenamestringDaThe name the uploader's machine gave it. ⛔ Display only — it is attacker-controlled text and is never used to build a storage path.
content_typestringDa
size_bytesintegerDa
scan_statestring<pending, clean, infected, error>Da`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. `erro…
downloadablebooleanDaWhether these bytes may be served. True only for `clean`.

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 422 · 429