I’m trying to filter active directors at the /officers endpoint.
I’m using "register_type": "directors"
, "register_view": "true"
query parameters
register_type is not returning the directors but all items and register_type is filtering everything.
Am I doing something wrong, or should I use something else to get only the active directors?
There is a recently introduced query parameter to the list officers endpoint which filters for only active officers. Add ?filter=active
to your request and its not necessary to filter for register_type/register_view for this purpose.
This returns officers of all officer_roles though, so you’ll have to filter it for officer_role=director on the receiving end. It just filters out any resigned officers.
Hope that helps
Yep, that’s perfect.
Thanks!