events assignments vehicle_questions

70 views
Skip to first unread message

surl...@gmail.com

unread,
Jun 22, 2022, 11:18:39 PM6/22/22
to motorsportreg-api-developers
I'm not getting back vehicle questions when making a request to the events assignments endpoint for some reason.

events/{ event.id }/assignments.json?fields=vehicle_questions,modifications,profile,profile_questions

`vehicle_questions` is returned on the response assignments but it's always an empty array. Hope I'm missing something basic here.

I also tried requesting `{ member.vehicleuri }.json?fields=questions` and `questions` is an empty array.

I'm looking for preferred numbers specifically, which I assume is in the vehicle questions.

Thanks

surl...@gmail.com

unread,
Jun 28, 2022, 9:19:30 AM6/28/22
to motorsportreg-api-developers
Ah I see preferredNumbers on the vehicle response. I must have missed that on the first pass.

Nyssa Capaul

unread,
Sep 27, 2023, 6:26:51 PM9/27/23
to motorsportreg-api-developers
This appears to still be an issue. Requesting vehicle_questions on the assignments endpoint returns an empty array. Additionally, in at least one instance with my members the vehicleuri does not return any vehicles.

Brian Ghidinelli

unread,
Feb 1, 2024, 8:32:03 PM2/1/24
to motorsportreg-api-developers
Nyssa, 

I apologize this fell off the radar. I ran unit tests for this endpoint today and I always get back a `vehicle_questions` array. Is this still happening for you? If so, can you send me the org and event ID and we can look further? 

One minor nuance - you have to request it on an `assignments` endpoint and not the `attendees` endpoint. E.g.:

  • Does NOT support vehicle_questions: 
    • /events/{event id}/attendees
  • DOES support vehicle_questions: 
    • /events/{event id}/assignments
    • /events/{event id}/attendees/{attendee id}/assignments


Brian
Screenshot 2024-02-01 at 17.28.57.png
Reply all
Reply to author
Forward
0 new messages