Is there a way to identify which folders/programs have tokens via APIs?

Stephen_Popple
Level 2

Is there a way to identify which folders/programs have tokens via APIs?

I am currently extracting all folders and programs using the REST APIs, and from that am using the GET /rest/asset/v1/folder/{id}/tokens.json to return the tokens, but i want to limit this to just those that actually have tokens, and cannot see a way to do this from the results of both GET /rest/asset/v1/folders.json and GET /rest/asset/v1/programs.json. Hopefully i am missing something obvious, so any help pointing me in the right direction would be appreciated.

Cheers

Stephen Popple
Tags (2)