hosting

GET /v1/sites/{siteId}/directory-index

Get what a site serves when a visitor opens a folder.

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

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

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

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

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

Испробајте

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

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/directory-index \
  -H "Authorization: Bearer zdk_live_…"

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

Детаљи

One resource over two vendor settings, because it is one idea to the customer: the ordered list of index files tried in a folder, and whether a folder with none of them lists its contents instead. listing_enabled is null when the vendor does not report it — distinct from false, because a switch rendered from an unknown is a switch that lies about the customer's site and invites them to turn on what may already be on. Requires sites.view. 404 for a site with no managed hosting package.

Параметри

НазивТипОбавезноШта је ово
siteId (path)UuidДаSite ID (UUIDv7).

Одговор

НазивТипОбавезноШта је ово
filesstring[]ДаThe index file names, in the order the server tries them.
listing_enabledbooleanДаWhether a folder with no index file lists its contents. Null when the vendor does not report it — distinct from false, because a switch rendered from an unknown lies about…
permittedbooleanДаWhether the package type includes the directory-index controls.

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

401 · 403 · 404 · 429 · 503