/events
Changed onFind Events
Description
Use this endpoint to find Events available in the current context using a number of filter options.
Request
This endpoint accepts standard pagination parameters and returns a standard paginated response.
By default, this endpoint returns 10 records per request. A maximum of 50 records per request is allowed via the $top parameter.
Valid expansion properties are: locations, codes, shifts, roles, notes. Note that the number of $expand sections requested may impact the speed with which this endpoint will respond.
The endpoint takes the optional filter parameters as described below
Request
- Base URLhttps://api.securevan.com/v4
- URLhttps://api.securevan.com/v4/events
- AuthHTTP basic
Query parameters
Filters Events to those with the given Code(s) applied (multiple codeIds should be comma-delimited)
Filters Events to those of the given Event Type(s) (multiple eventTypeIds should be comma-delimited)
Filters to Recurring Events that are recurrences of the given Event ID
Filters Events to those starting after (and not including) a given date (in the format yyyy-MM-dd)
Filters Events to those starting before (and not including) a given date (in the format yyyy-MM-dd)
Filters Events to those which are associated with the specified District Field Value
Filters Events to those which were created by the specified CommitteeID
Optional; comma-delimited list of expansion properties: locations, codes, shifts, roles, notes
Response
200
Example response
{
"items": [
{
"eventId": 1370,
"name": "Neighbors Calling Neighbors",
"shortName": "NeighborCall",
"description": "Come help get the word out about our great campaign.",
"startDate": "2015-06-01T15:00:00-04:00",
"endDate": "2015-06-01T20:00:00-04:00",
"eventType": {
"eventTypeId": 143856,
"name": "Phone Bank"
},
"shifts": [
{
"eventShiftId": 2162,
"name": "Setup",
"startTime": "2015-06-01T15:00:00-04:00",
"endTime": "2015-06-01T16:00:00-04:00"
}
],
"districtFieldValue": "003",
"createdDate": "2015-04-05T13:18:00Z"
}
],
"nextPageLink": "https://api.securevan.com:443/v4/events?startingAfter=2015-05-31&$expand=shifts&$top=2&$skip=2",
"count": 1
}Changes
- info
endpoint added
- info