Skip to content

Update General Settings ​

Saves the general settings. Send only the fields of the box you save; the others keep their values.

A changed event_slug changes every event URL (/<event_slug>/<post_slug>/); WordPress rebuilds its rewrite rules on the next request. events_page_id must be a published page, or 0 for none.

Endpoint ​

  • Method: POST
  • Path: /fluent-event/v2/settings/general
  • Controller: SettingsController@updateGeneral
  • Route source: fluent-event/app/Http/Routes/api.php:24
  • Controller source: fluent-event/app/Http/Controllers/SettingsController.php:26

Permissions ​

  • Requires the manage_options capability (a site administrator). FluentEvent has no separate staff roles: its admin API is for administrators only.

Hooks Fired ​

Live sample

The request and response below were recorded on a running FluentEvent site and then anonymised. Names, emails and event titles are fictional, and long lists are cut to a few items.

Update General Settings​

POST
/settings/general

Saves the general settings. Send only the fields of the box you save; the others keep their values.

Controller: SettingsController@updateGeneral
Route source: fluent-event/app/Http/Routes/api.php:24

Authorizations​

ApplicationPasswords

A WordPress username and an Application Password.

Type
HTTP (basic)

Request Body​

application/json
JSON
{
  
"event_slug": "string",
  
"default_events_view": "string",
  
"disable_event_view_switch": "string",
  
"events_page_id": 0
}

Responses​

Success

application/json
JSON
{
  
"message": "string",
  
"settings": {
  
  
"default_events_view": "string",
  
  
"disable_event_view_switch": "string",
  
  
"events_page_id": 0,
  
  
"event_slug": "string"
  
},
  
"pages": {
  
  
"events_page_id": "string"
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation