PUBLIC_EMAILER_TEMPLATE_NOT_FOUNDE-mail template does not exist or is inactive.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 404Publiczne API
No active template of type "Custom e-mail (sent via API)" with this code (template variant) exists in the organisation behind the API key.
Jak to rozwiązać
- 1
In admin go to E-maily → Šablony, create a template of type "Vlastní e-mail (odesílaný přes API)" and set its variant to the code you send.
- 2
Check that the template is active and has a subject and a body.
Przykładowa odpowiedź
API odpowiada statusem HTTP 404 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
application/json
{
"state": "error",
"code": 404,
"message": "E-mail template does not exist or is inactive.",
"errorCode": "PUBLIC_EMAILER_TEMPLATE_NOT_FOUND",
"hint": "No active template of type \"Custom e-mail (sent via API)\" with this code (template variant) exists in the organisation behind the API key.",
"documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_EMAILER_TEMPLATE_NOT_FOUND"
}