FCHubFCHub.co

Enable or disable email notification

Toggle an email notification on or off.

POST
/email-notification/enable-notification/{name}

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Path Parameters

name*string

Notification name/key

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/email-notification/enable-notification/string" \  -H "Content-Type: application/json" \  -d '{    "active": "yes"  }'
{
  "message": "string"
}