Skip to content

Create Page ​

Creates a published page that holds the events block, and selects it for the setting.

The page content is fixed by the plugin; the request only sets the title.

Endpoint ​

  • Method: POST
  • Path: /fluent-event/v2/settings/create-page
  • Controller: SettingsController@createPage
  • Route source: fluent-event/app/Http/Routes/api.php:26
  • Controller source: fluent-event/app/Http/Controllers/SettingsController.php:86

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.

Create Page​

POST
/settings/create-page

Creates a published page that holds the events block, and selects it for the setting.

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

Authorizations​

ApplicationPasswords

A WordPress username and an Application Password.

Type
HTTP (basic)

Request Body​

application/json
JSON
{
  
"key": "",
  
"title": ""
}

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": {
  
  
  
"id": 0,
  
  
  
"title": "string",
  
  
  
"link": "string",
  
  
  
"has_shortcode": true
  
  
}
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation