- List certificate holders
Returns the users a certificate has been issued to, one row per issue. With a certificate ID in the path, the list is that certificate's holders; on the path without one, it spans every certificate in the account.
Only holders the caller is allowed to see are returned, so the list can be shorter than the number of certificates issued.
Rows carry no related records unless asked for. Request user with with for the holder's profile, or certificate for the certificate's name, which is what the account-wide list usually calls for. Reading a single holder always includes the user, so this is only a concern for lists.
A filter to apply to the results. Declared as an array of objects, where each object contains an attr (attribute code), operator and value key. Examples:
?filter[0]['attr']=name&filter[0][operator]=like&filter[0][value]=luke
?filter[0]['attr']=id&filter[0][operator]=>&filter[0][value]=265
See the filters documentation for more details on how to use this.
- Mock serverhttps://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/certificate/{certificate_id}/user
- Your Rosterfy accounthttps://example.rosterfy.com/api/v2/certificate/{certificate_id}/user
curl -i -X GET \
'https://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/certificate/{certificate_id}/user?per_page=5&page=1&filter=%7Bfilter%7D&sort_by=%7Bsort_by%7D&sort_order=%7Bsort_order%7D&_locale=en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Rosterfy-Platform: admin'[ { "current_page": 1, "data": [ … ], "first_page_url": "https://example.rosterfy.com/api/v2/certificate/{certificate}/user?per_page=5&_locale=en-US&page=1", "from": 1, "next_page_url": "https://example.rosterfy.com/api/v2/certificate/{certificate}/user?per_page=5&_locale=en-US&page=2", "path": "https://example.rosterfy.com/api/v2/certificate/{certificate}/user", "per_page": 5, "prev_page_url": null, "to": 5 } ]