Skip to content

Create Calendar ​

Creates a calendar. The current user becomes its creator.

An empty slug is generated from the title. theme_color is stored in meta.

Endpoint ​

  • Method: POST
  • Path: /fluent-event/v2/calendars
  • Controller: CalendarController@createCalendar
  • Route source: fluent-event/app/Http/Routes/api.php:41
  • Controller source: fluent-event/app/Http/Controllers/CalendarController.php:81

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 Calendar​

POST
/calendars

Creates a calendar. The current user becomes its creator.

Controller: CalendarController@createCalendar
Route source: fluent-event/app/Http/Routes/api.php:41

Authorizations​

ApplicationPasswords

A WordPress username and an Application Password.

Type
HTTP (basic)

Request Body​

application/json
JSON
{
  
"title": "string",
  
"slug": "string",
  
"status": "string",
  
"theme_color": "string"
}

Responses​

Success

application/json
JSON
{
  
"message": "string",
  
"calendar": {
  
  
"title": "string",
  
  
"slug": "string",
  
  
"status": "string",
  
  
"meta": {
  
  
  
"theme_color": "string"
  
  
},
  
  
"created_by": 0,
  
  
"updated_at": "string",
  
  
"created_at": "string",
  
  
"id": 0
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation