Documentation (V2) Home

Events

The Events API allows the retrieval of information pertaining to events.

GET

/events

DESCRIPTION

Returns a list of events associated with the owner of the API Key being used.

PARAMETERS

Header Parameters

Name Description Required Values Default
X-API-KEY The API Key to use for this request Required String NULL

GET Parameters

Name Description Required Values Default
start-date This will filter the events to only those beginning after this date Optional Date NULL
end-date This will filter the events to only those beginning before this date Optional Date NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Detail(s)
200 Successful response
400 Invalid Query Parameter
401 Invalid API key
405 Invalid request HTTP method
429 Too Many Requests

Example Success Response

POST

/events

DESCRIPTION

Creates an event using the provided information.

PARAMETERS

Header Parameters

Name Description Required Values Default
X-API-KEY The API Key to use for this request Required String NULL

POST Parameters

Name Description Required Values Default
name The name of the event Required String NULL
startDate The start date of the event Required Date NULL
endDate The end date of the event Optional Date NULL
openCheckIn Whether or not the event requires a proctor Optional Boolean false
checkOutEvent Whether or not the event allows users to check-out Optional Boolean false
co-owners Relationship object containing entries for each co-owner, identified by NetID Optional Mixed NULL
proctors Relationship object containing entries for each proctor, identified by NetID Optional Mixed NULL

Example Post Body

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Detail(s)
201 Resource created
400 Invalid Post Data
Attribute Required
Invalid Attribute
401 Invalid API key
403 Invalid Resource ID
405 Invalid request HTTP method
409 Invalid Resource Type
429 Too Many Requests

Example Success Response

GET

/events/{id}

DESCRIPTION

Returns information for an event with the given ID

PARAMETERS

Header Parameters

Name Description Required Values Default
X-API-KEY The API Key to use for this request Required String NULL

URI Parameters

Name Description Required Values Default
id The ID of the event. Required Integer NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Detail(s)
200 Successful response
401 Invalid API key
403 Access Denied
404 Event not found
405 Invalid request HTTP method
429 Too Many Requests

Example Success Response

GET

/events/{id}/attendance

DESCRIPTION

Returns attendance information for an event with the given ID

PARAMETERS

Header Parameters

Name Description Required Values Default
X-API-KEY The API Key to use for this request Required String NULL

URI Parameters

Name Description Required Values Default
id The ID of the event. Required Integer NULL

GET Parameters

Name Description Required Values Default
additional[] An array of additional data attributes to include in the response. Optional Array ["major", "classification", "college"] []

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Detail(s)
200 Successful response
401 Invalid API key
403 Access Denied
404 Event not found
405 Invalid request HTTP method
429 Too Many Requests

Example Success Response