New calendar aggregation and filtering by multiple event types

46 views
Skip to first unread message

Brian Ghidinelli

unread,
Jan 31, 2024, 5:03:39 PM1/31/24
to motorsportreg-api-developers
Hi all, 


We can only be the best place to organize, find and attend events through your partnership. In particular, as a fellow developer, I appreciate your integrations and feedback which help us improve the product.

Today I wanted to share two small but helpful updates: 

1. Multiple-account organizations

If your account has sub-clubs, like "Club" with "Club - HPDE" and "Club - Autocross" for example, you can pull back all events for a single organization by using the Organization ID of the parent organization and then asking for all children, like so:

`/rest/calendars/organization/{organization_id}?children=true`

This only makes sense on the organization-specific resource.

2. Filter by multiple event types

You can currently pull back events of a single type by using a resource like: 

`/rest/calendars/organization/{organization_id}/type/{type_id}`

You can now pass multiple type_ids to the parent resource for more flexible querying: 

`/rest/calendars/organization/{organization_id}?types=x,y,z`

Right now you have to grab those event type IDs from viewing the source of your event basic settings page (look for `uidEventType`). We'll get those documented somewhere to make it easier!

Hope that helps - let us know what you think!


Brian

Admin SCCA

unread,
Jan 31, 2024, 9:13:02 PM1/31/24
to motorsportreg-api-developers
Here you go:  

MSR TypeIDs
E45E2796-A916-6BD8-97619EBFDF81E3D6    Autocross/Solo
791A3B8E-EA6B-642F-B0C0D6577659479B    Boat Racing
272A3C82-BC41-4C9D-833E1E33EE5C5C90    Boat Shows
E45F0646-CCDC-A393-98907C9C2CCF4EA4    Car Control Clinic
0D28333F-A687-FAC2-D1FF74E5A6764080    Car Show/Concours
E45CDE72-A859-E79F-D0CB8D7C1A6D415B    Club Race
883FAD65-D778-BC8F-E1E30F42C045BFB0    Combined
A0B33963-0230-8454-1B72E1B34BDFDD8F    Cross Country
272A3C82-BC41-4C9D-833E1E33EE5C5C92    Demolition Derby
272A3C82-BC41-4C9D-833E1E33EE5C5C94    Drag and Drive
791A3BD8-AB40-3B9C-723E1E33EE5C5B21    Drag Racing
976850B7-1D72-822B-79FA89B19C4C56BA    Drift
272A3C82-BC41-4C9D-833E1E33EE5C5C33    Endurance Racing
0DAAA8A0-DAA5-F16B-279E2070A40732CC    Festival/Social
A0B33821-EACE-108D-42B9A5882D01E457    Flat Track
8882210A-54E4-357F-0F626876BEED8EDF    Fun Run/Tour
161A3C81-AB41-3B9C-723E1E33EE5C5B21    Hill Climb
4DC4D149-DDCD-6FC1-EC80F2C8A23C1CD4    HPDE
791A3B8D-BAFC-9345-F1E181CC87C95AD0    Ice Racing
6D82210A-54E4-357F-0F626876BEED8EDF    Karting
B8749D0A-1D72-822B-79974C62C67CE838    Membership
791A3B90-E23E-3901-74030EADBF973BDB    Motocross
6B71EF5B-1D72-822B-79E4EE2C0D51C95E    Motorcycle Race
AC83310A-54E4-357F-0F626876BEED8EDF    Motorcycle Track Day
791A3B89-AB40-3B9C-723E1E33EE5C5B21    Off Road
4DC7FA93-AF1F-8454-1A71E330357E382C    Open Track
272A3C82-BC41-4C9D-833E1E33EE5C5C91    Oval Track Racing
0D28334E-C687-FAC2-D1FF74E5A6764080    Pro Race
CD063407-54E4-357F-0561772DF412108E    RallyCross
9C82210A-54E4-357F-0F626876BEED8EDF    Road Rally
AC83311C-54E4-357F-0F626876BEED8EDF    Seminar/Meeting
272A3C81-BC41-4C9C-833E1E33EE5C5C32    Sim Racing
272A3C82-BC41-4C9D-833E1E33EE5C5C93    Spectator
791A3C80-AB40-3B9C-723E1E33EE5C5B21    Stage Rally
F5D6686A-B920-4F21-600850951EB2739C    Tech Session
2772E2F8-90C7-9596-3EE4D00CACAA2844    Time Trial
07DB72B9-1D72-822B-799D8FACA7B9BB16    Vintage Racing

Brian Ghidinelli

unread,
Feb 1, 2024, 8:37:57 PM2/1/24
to motorsportreg-api-developers
Thank you!
Reply all
Reply to author
Forward
0 new messages