BizKitHub
PUBLIC_EMAILER_BODY_REQUIRED

Send either htmlBody (with subject) or templateCode.

Aus BizKitHub Docs, der Referenz der API-Fehlercodes

Titel und Beschreibungen der Codes pflegen wir auf Englisch.

HTTP 400Öffentliche API
`POST /emailer/send` needs exactly one source of content: a ready `htmlBody` with `subject`, or `templateCode` of the organisation's own template written in admin.

So beheben Sie es

  1. 1

    Remove `htmlBody` when sending by `templateCode`.

  2. 2

    Send `subject` together with `htmlBody`.

Beispielantwort

Die API antwortet mit HTTP 400 und einem JSON-Body. Vergleichen Sie errorCode, nicht message. Meldungen können umformuliert werden, Codes bleiben stabil.

application/json
{
  "state": "error",
  "code": 400,
  "message": "Send either htmlBody (with subject) or templateCode.",
  "errorCode": "PUBLIC_EMAILER_BODY_REQUIRED",
  "hint": "`POST /emailer/send` needs exactly one source of content: a ready `htmlBody` with `subject`, or `templateCode` of the organisation's own template written in admin.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_EMAILER_BODY_REQUIRED"
}