Event

Update a event

Required role: ADMIN

put/event/

Request

  • Base URL: https://adonix.hackillinois.org
  • URL: https://adonix.hackillinois.org/event/
  • Auth: none declared

Request body

isStaffboolean
namestring
descriptionstring
startTimenumber
endTimenumber
expnumber
eventType'MEAL' | 'SPEAKER' | 'WORKSHOP' | 'MINIEVENT' | 'SIDEQUEST' | 'QNA' | 'MEETING' | 'STAFFSHIFT' | 'OTHER'
isAsyncboolean
mapImageUrlstring
sponsorstring
pointsnumber
isPrivateboolean
displayOnStaffCheckInboolean
isMandatoryboolean
isProboolean
menustring[]
eventIdstring required

Example request

{
  "eventId": "event1",
  "name": "New Name"
}

Response

The updated event

eventIdstring required
isStaffboolean required
namestring required
descriptionstring required
startTimenumber required
endTimenumber required
expnumber
eventType'MEAL' | 'SPEAKER' | 'WORKSHOP' | 'MINIEVENT' | 'SIDEQUEST' | 'QNA' | 'MEETING' | 'STAFFSHIFT' | 'OTHER' required
isAsyncboolean required
mapImageUrlstring
sponsorstring
pointsnumber required
isPrivateboolean required
displayOnStaffCheckInboolean
isMandatoryboolean
isProboolean required
menustring[]

Example response

{
  "eventId": "52fdfc072182654f163f5f0f9a621d72",
  "name": "Awesome Event",
  "description": "A really cool event",
  "startTime": 1532202702,
  "endTime": 1532212702,
  "locations": [
    {
      "description": "Siebel Center for CS",
      "latitude": 40.1138,
      "longitude": -88.2249
    }
  ],
  "sponsor": "AwesomeSocks",
  "eventType": "WORKSHOP",
  "points": 10,
  "isStaff": false,
  "isPrivate": false,
  "isAsync": false,
  "isPro": false,
  "isMandatory": false,
  "displayOnStaffCheckIn": true,
  "mapImageUrl": "example.com/image.png",
  "exp": 12393928829,
  "menu": [
    "Pizza",
    "Pizza"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.