Including CustomFields for workshop items in the /api/contact/enrolments/ endpoint
CompletedWould it be possible to include custom fields for Workshop (Short Courses) records in the responses from the /api/contact/enrolments/ API endpoint?
Interestingly the Program enrolment records from the /api/contact/enrolments/ API endpoint are correctly returning the custom fields within the responses, however the short courses/workshops are not.
Currently as it stands the only way to effectively pull back Workshop enrolment records for a given contact requires two API calls.
/api/courses/enrolments [contactid,type=w]
/api/courses/enrolments [contactid,type=p]
Ideally a single call of /api/contact/enrolments/ would return all the relevant enrolment records for a given contact with inclusive of custom fields for both enrolment record types.
Please sign in to leave a comment.
Comments
5 comments