Sites

Base: https://webvyze.com/api/v1 · clique numa rota para ver escopo, parâmetros, exemplo e respostas.

GET/sitesList the sites you can see

Needs access to the site, when there is one.

Escopo
api:read
Respostas
200401402403422429
curl -H "Authorization: Bearer $WEBVYZE_KEY" \
  https://webvyze.com/api/v1/sites
Link para esta rota
POST/sitesAdd a site

Needs a token with api:write. Needs the sites.create permission in the account.

Escopo
api:write
Respostas
200401402403422429
curl -X POST -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites
Link para esta rota
GET/sites/{site}Site details, laws and monitoring settings

Needs access to the site, when there is one.

Escopo
api:read
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -H "Authorization: Bearer $WEBVYZE_KEY" \
  https://webvyze.com/api/v1/sites/{site}
Link para esta rota
PATCH/sites/{site}Change site settings

Needs a token with api:write. Needs the sites.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -X PATCH -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites/{site}
Link para esta rota
DELETE/sites/{site}Delete a site

Needs a token with api:write. Needs the sites.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -X DELETE -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites/{site}
Link para esta rota
PUT/sites/{site}/lawsChoose the laws of a site

Needs a token with api:write. Needs the sites.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -X PUT -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites/{site}/laws
Link para esta rota