Skip to main content
POST
/
v1
/
events
/
create
Event Creation
curl --request POST \
  --url https://dev.api.mufi.app/v1/events/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "reference_id": "<string>",
  "start_date": 123,
  "end_date": 123
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reference_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "start_date": 123,
  "end_date": 123,
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

A JWT Access Token obtained from Google Cloud.

Body

application/json

The request body must include the event name, description, reference ID, start date, and end date.

name
string
required

Name of the event. e.g. "Ultra Music Festival"

Required string length: 3 - 255
description
string

Description of the event. e.g. "The best music festival in the world"

reference_id
string | null

An optional ID of the reference object in your database. This can be used to query events by reference object.

start_date
integer | null

Timestamp as Unix timestamp in seconds

Required range: x > 0
end_date
integer | null

Timestamp as Unix timestamp in seconds

Required range: x > 0

Response

Created.

id
string<uuid>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string
required
project_id
string<uuid>
required
reference_id
string | null

An optional ID of the reference object in your database. This can be used to query events by reference object.

description
string | null
start_date
integer | null

Timestamp as Unix timestamp in seconds

Required range: x > 0
end_date
integer | null

Timestamp as Unix timestamp in seconds

Required range: x > 0