hosting

GET /v1/sites/{siteId}/wordpress/uploads/{uploadId}

Read a resumable upload — its progress and which parts have arrived.

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

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

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

Пошаљите 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.

Одговор

НазивТипОбавезноШта је ово
idstringДа—
kindstring<plugin, theme>Да—
statusstring<open, assembling, installed, failed>Да—
sizeintegerДа—
part_sizeintegerДаBytes per part, chosen by the platform. Every part but the last is exactly this long.
part_countintegerДа—
file_namestringДа—
activatebooleanДа—
messagestringДаOn failed, what went wrong, written for the customer. Empty otherwise.
expires_atstringДа—
created_atstringДа—
finished_atstringДа—
received_partsinteger[]НеPresent while open — the part numbers already stored.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429