Skip to content

Update Calendar ​

Updates a calendar. Send the full calendar: every required field is validated again.

Endpoint ​

  • Method: PATCH
  • Path: /fluent-event/v2/calendars/{id}
  • Controller: CalendarController@updateCalendar
  • Route source: fluent-event/app/Http/Routes/api.php:42
  • Controller source: fluent-event/app/Http/Controllers/CalendarController.php:97

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

PATCH
/calendars/{id}

Updates a calendar. Send the full calendar: every required field is validated again.

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

Authorizations​

ApplicationPasswords

A WordPress username and an Application Password.

Type
HTTP (basic)

Parameters​

Path Parameters

id*

Record ID.

Type
integer
Required
Minimum
1

Request Body​

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

Responses​

Success

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

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation