Note: This section describes code that hasn't been written yet. So don't expect it to work :-D

Action: AddEvent

AddEvent should be used to insert new events into the database. Arguments are NOT all optional (see below).

  • Required arguments:
    • name (string)
    • description (string, or text)
    • start_time (datetime)
    • end_time (datetime)
    • location_square (int) - see Model_Spec
    • sponsor (string)
    • user_id (int)
    • cost (float) - 0.0 if free
      • should be in dollars
    • category_id (int) - see Model_Spec
      • Note: Specifying a subcategory will automatically include the event in any parent categories. So, use the most specific category ID possible.
  • Optional arguments:
    • schedule_id (int)
      • used only if this event is one in a series of recurring events.
    • address (string)
      • textual representation of the address where the event will take place
    • food (string)