reseller

PUT /v1/reseller/edge-policy/clients/{orgId}

Turn networks on and off for one client.

Todos os endpoints de reseller

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão reseller.manage; uma chave sem ela é recusada com 403, e não 404.

Onde vai o ID da sua organização

Este endpoint aceita o ID da sua organização diretamente na URL, como orgId. Substitua-o no caminho — não há cabeçalho ou parâmetro de consulta que sirva como alternativa.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

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 PUT https://api.zinndigital.com/v1/reseller/edge-policy/clients/{orgId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "disabled": <ResellerEdgeVendorRef[]> }'

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

Per-client control inside what you already offer. This can only narrow **further**: a network you have turned off for everybody stays off for this client whatever you send here. Unlike your own policy, turning off every network for one client is allowed — that client simply creates no new sites — and their running sites are untouched. An org id that is not one of your clients is a 404. Requires `reseller.manage`.

Parâmetros

NomeTipoObrigatórioO que é
orgId (path)UuidSimThe client organization. Must be one of your own clients.

Corpo da requisição

NomeTipoObrigatórioO que é
disabledResellerEdgeVendorRef[]SimThe **complete** set of networks to turn off. Anything absent is turned on, so send the full state rather than a change — two screens open at once cannot then leave a switch beh…

Resposta

NomeTipoObrigatórioO que é
dataResellerEdgeVendor[]SimEvery CDN and DNS network your clients could be placed on, in category then alphabetical order. The list reflects **your** pool: your own connected accounts if you have any, oth…

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429