Create an Event
ENDPOINT
POST https://api.codecoogs.com/v1/events
REQUEST BODY
{
"type": 1,
"start_time": "2023-02-10",
"end_time": "2023-02-10",
"location": "PGH 563,
"name": "Intro to React.js",
"description": "We will cover the basics of the React.js library",
"points": 15,
"leaderboard": "c4e11505-5555-42f9-9f48-678a0abf55c6"
}
URL Parameters
No parameters.
Body Parameters
type integer
The event's enum type.
start_time string
The event's start time.
end_time string
The event's end time.
location string
The location where the event will be held.
name string
The event's name.
description string
The event's name description.
points integer
The number of points the event provides.
leaderboard string
(Optional)
A UUID that references the Leaderboard of the event.
Returns
RReturns a success status after successful event creation. This call returns a success status and an error message if something goes wrong.