forked from klnusbaum/UDJ-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
0.7 Events
murph edited this page Mar 18, 2013
·
3 revisions
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.
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.
Changes the event specified by event_id
. Takes an Event.