Skip to content

0.7 Events

murph edited this page Mar 18, 2013 · 3 revisions

Back to 0.7 API

Events are temporary entities that can be associated with a player which usually describe for what a particular player is being used during a speicifc time period.

Endpoints:

/events

PUT

Creates a new event from the given JSON and returns an Event JSON object representing the created event.

Example input:

{
  "name" : name of event,
  "player_id" : id of player which will be used for the event,
  "start_time" : time the event starts,
  "end_time" : time the event ends
  "hosts" : JSON array of user id's representing the hosts of the event.
}

Caller must have create even permission for player. Hosts must all have host even permissions. Returns an event id.

/events/event_id/start_time

POST

Changes the event specified by event_id. Takes an Event.