Event

By Fediverse Developer Network

https://fedidevs.org/projects/server-apps/communecter/objects/event/

An Event is an activity representing a specific event or happening in Communecter.

Properties

PropertyData TypeDescription
type*StringThe object type (Event)
id*String (URI)The URI that identifies the event
attachment*Array of AttachmentsAttachments associated with the event
attributedTo*String (URI)The URI of the entity or user who created the event
content*StringThe content or description of the event
name*StringThe name or title of the event
startTimeStringThe start time of the event (formatted as a date and time)
endTimeStringThe end time of the event (formatted as a date and time)
locationObject (Place)The location of the event
published*StringThe date and time when the event was published
urlString (URL)The URL of the event’s website or landing page

Attachment Object

PropertyData TypeDescription
type*StringThe object type (Document or Link)
nameStringThe name or title of the attachment
url*String (URL)The URL of the attachment
mediaTypeStringThe media type of the attachment (e.g., image/png, text/html)
categoryStringThe category or classification of the attachment

Place Object

PropertyData TypeDescription
type*StringThe object type (Place)
id*String (URI)The URI that identifies the place
nameStringThe name of the place
addressObject (Address)The address details of the place

Address Object

PropertyData TypeDescription
type*StringThe object type (PostalAddress)
addressCountryStringThe country of the address
addressLocalityStringThe locality (city, town, etc.) of the address
addressRegionStringThe region (state, province, etc.) of the address
postalCodeStringThe postal code of the address
streetAddressStringThe street address of the place

Example


{
  "type": "Event",
  "id": "https://communecter.org/api/activitypub/object/id/64a15d71d725c",
  "attachment": [
    {
      "type": "Document",
      "name": "Flyer",
      "url": "https://example.com/uploads/flyer.pdf",
      "mediaType": "application/pdf",
      "category": "document"
    },
    {
      "type": "Link",
      "name": "Registration",
      "mediaType": "text/html",
      "category": "url",
      "url": "https://example.com/registration"
    }
  ],
  "attributedTo": "https://example.com/users/johndoe",
  "content": "Join us for a community cleanup event where we will be cleaning up the local park and planting trees.",
  "name": "Community Cleanup Event",
  "startTime": "2023-07-15T10:00:00Z",
  "endTime": "2023-07-15T15:00:00Z",
  "location": {
    "type": "Place",
    "id": "https://example.com/places/park123",
    "address": {
      "type": "PostalAddress",
      "addressCountry": "US",
      "addressLocality": "San Francisco",
      "addressRegion": "California",
      "streetAddress": "123 Main St"
    }
  },
  "published": "2023-06-30T09:00:00Z",
  "url": "https://example.com/events/community-cleanup",
  "description": "Come join us for a day of community service as we clean up our local park and make it a better place for everyone. All necessary tools and equipment will be provided. Bring your friends and family and let's make a positive impact together!"
}