BizKitHub
DocsAPI ReferenceEmailer/bff/emailer/template-set-active
postEmailerAdmin BFF

/bff/emailer/template-set-active

Toggles whether a custom email template is used for sending. Inactive templates are kept (with history) but never selected.

EmailerpostBffEmailerTemplate-set-active

Parameters

JSON body

Request body

application/json
templateCodestringRequired

Template code identifier.

Exampleorder-confirmed-v1
isActivebooleanRequired

true = active (used for sending), false = inactive (ignored).

Response schema

1 status code documented

200Success

This response returns no JSON body.

Response example

application/json
{
  "success": true
}

Request example

POST /bff/emailer/template-set-active

post
curl -X POST "https://api.bizkithub.com/bff/emailer/template-set-active" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "templateCode": "order-confirmed-v1",
  "isActive": false
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key