hosting
GET /v1/sites/{siteId}/wordpress/uploads/{uploadId}
Read a resumable upload — its progress and which parts have arrived.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/wordpress/uploads/{uploadId} \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
While the upload is open, received_parts lists every part already stored with the right length, read from storage itself; a resuming client sends the rest. After complete the status moves to assembling and then installed or failed (with a message for the customer). An upload is bound to the site it was started on: any other site, or another organisation, gets 404. Requires sites.view and sites.panel_access.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
uploadId (path) | string | Да | A resumable upload's id, from startSiteWordPressUpload. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | string | Да | — |
kind | string<plugin, theme> | Да | — |
status | string<open, assembling, installed, failed> | Да | — |
size | integer | Да | — |
part_size | integer | Да | Bytes per part, chosen by the platform. Every part but the last is exactly this long. |
part_count | integer | Да | — |
file_name | string | Да | — |
activate | boolean | Да | — |
message | string | Да | On failed, what went wrong, written for the customer. Empty otherwise. |
expires_at | string | Да | — |
created_at | string | Да | — |
finished_at | string | Да | — |
received_parts | integer[] | Не | Present while open — the part numbers already stored. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429