Skip to content

Endpoint

  • Method: POST
  • Path: /profile/{username}/notification-preferences
  • Edition: Core
  • Controller: ProfileController@saveNotificationPreferance
  • Route source: fluent-community/app/Http/Routes/api.php:92
  • Controller source: fluent-community/app/Http/Controllers/ProfileController.php

POST Save Notification Preferences

POST
/profile/{username}/notification-preferences

Save Notification Preferences for the FluentCommunity Profile API.

Controller: ProfileController@saveNotificationPreferance
Route source: fluent-community/app/Http/Routes/api.php:92

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

username*

Username extracted from the URL path.

Type
string
Required

Request Body

application/json
JSON
{
  
"user_globals": {
  
  
"message_email_frequency": "string"
  
},
  
"space_prefs": [
  
  
"string"
  
]
}

Responses

Successful response

application/json
JSON
{
  
"prefs": "string",
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation