PUBLIC_EMAILER_TEMPLATE_NOT_FOUNDE-mail template does not exist or is inactive.
Z BizKitHub Docs, reference chybových kódů API
Názvy a popisy kódů udržujeme v angličtině.
HTTP 404Veřejné 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 vyřešit
- 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.
Ukázka odpovědi
API odpoví statusem HTTP 404 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.
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"
}