Skip to content

Notifications API

Onderhouden door: Aether365 Team Doelgroep: Ontwikkelaars Scope: API endpoints voor meldingsinstellingen

Beheer e-mail- en Teams-meldingsinstellingen voor de geauthenticeerde tenant.

Meldingsinstellingen ophalen

GET /tenants/me/notifications

Voorbeeldverzoek

bash
curl https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>"

Voorbeeldresponse

json
{
  "success": true,
  "data": {
    "emailOnComplete": true,
    "emailOnFail": true,
    "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }
}

Responsevelden

VeldTypeBeschrijving
emailOnCompletebooleanE-mail versturen wanneer een scan succesvol is voltooid
emailOnFailbooleanE-mail versturen wanneer een scan mislukt
teamsWebhookUrlstring of nullMicrosoft Teams inkomende webhook-URL
teamsOnCompletebooleanBericht in Teams plaatsen wanneer een scan is voltooid
teamsOnFailbooleanBericht in Teams plaatsen wanneer een scan mislukt

Meldingsinstellingen bijwerken

Werkt meldingsinstellingen bij. Alleen de meegestuurde velden worden gewijzigd.

PATCH /tenants/me/notifications

Verzoekbody

Alle velden zijn optioneel. Stuur alleen de velden mee die je wilt wijzigen.

json
{
  "emailOnComplete": true,
  "emailOnFail": true,
  "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
  "teamsOnComplete": true,
  "teamsOnFail": false
}

Voorbeeld: Teams-meldingen inschakelen

bash
curl -X PATCH https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "teamsWebhookUrl": "https://outlook.office.com/webhook/your-webhook-url",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }'

Voorbeeld: alle e-mailmeldingen uitschakelen

bash
curl -X PATCH https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "emailOnComplete": false,
    "emailOnFail": false
  }'

Voorbeeldresponse

json
{
  "success": true,
  "data": {
    "emailOnComplete": false,
    "emailOnFail": false,
    "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }
}

Fouten

CodeHTTPBeschrijving
AUTH_INSUFFICIENT_SCOPE403Onvoldoende machtigingen voor deze actie
VALIDATION_ERROR400Ongeldig webhook-URL-formaat
Was deze pagina nuttig?