Add New Event

POST/api/events

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
title string Mandatory Event title
start_date string Mandatory Start date (Y-m-d)
end_date string optional Optional End date (Y-m-d)
description string optional Optional Event description
location string optional Optional Event location
created_by number optional Optional RISE user ID. Default: 1. Use for proper attribution.
curl -X POST "https://yoursite.com/api/events" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "title": "...", "start_date": "..." }'

Success-Response:

HTTP/1.1 201 Created
{
  "status": 200,
  "messages": {"success": "Event add success"},
  "id": 1
}
MethodPOST
Path/api/events
GroupEvents
Sincev1.0.0
Defined inRestApi/Controllers/EventsController.php