Adding additional excluded directories via BigFix API

Hi there

I’d like to use the existing BigFix API to invoke the “Add Excluded Directories” Fixlet and provide a customised payload of hostnames and directories. Is this possible? Even on a per hostname basis is fine.

Any examples and help is much appreciated.

Thank you