hosting
DELETE /v1/sites/{siteId}/wordpress/themes/{themeName}
Remove a theme from a site's WordPress.
Autenticação
Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/wordpress/themes/{themeName} \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
Deletes the theme's files. The list is re-read afterwards, so a theme that survived the removal is a refusal rather than a reported success. `200` and the whole list, because the card renders the remainder from this answer. `404` for a site with no vendor hosting package. Requires `sites.view` and `sites.panel_access`.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
siteId (path) | Uuid | Sim | Site ID (UUIDv7). |
themeName (path) | string | Sim | The theme's slug, exactly as `listSiteWordPressThemes` reports it. WordPress's identifier, not ours — percent-encode it. |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
data | SiteWordPressTheme[] | Sim | The installed themes. |
Erros que este endpoint pode retornar
401 · 403 · 404 · 409 · 422 · 429 · 503