Skip to content

Merges the submitted email notification settings over the stored ones and saves the result.

Submitted values are merged onto the previous settings, so a partial payload is safe. If digest_mail_day or daily_digest_time changes, every queued fluent_community_send_daily_digest_init action is unscheduled and the digest is re-queued on the next cron pass.

Endpoint

  • Method: POST

  • Path: /admin/email-settings

  • Edition: Core

  • Controller: AdminController@saveEmailSettings

  • Route source: fluent-community/app/Http/Routes/api.php:104

  • Controller source: fluent-community/app/Http/Controllers/AdminController.php

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

POST Save Email Settings

POST
/admin/email-settings

Merges the submitted email notification settings over the stored ones and saves the result.

Controller: AdminController@saveEmailSettings
Route source: fluent-community/app/Http/Routes/api.php:104

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"email_settings": {
  
  
"logo": "string"
  
}
}

Responses

Successful response

application/json
JSON
{
  
"email_settings": {
  
  
"com_my_post_mail": "string",
  
  
"daily_digest_time": "string",
  
  
"digest_email_status": "string",
  
  
"digest_mail_day": "string",
  
  
"disable_powered_by": "string",
  
  
"email_footer": "string",
  
  
"email_footer_rendered": "string",
  
  
"logo": "string",
  
  
"mention_mail": "string",
  
  
"reply_my_com_mail": "string",
  
  
"reply_to_email": "string",
  
  
"reply_to_name": "string",
  
  
"send_from_email": "string",
  
  
"send_from_name": "string"
  
},
  
"message": "string"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation