support

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

Attach a file to a ticket message.

Све support крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу tickets.reply; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у 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