Well I tried that before posting the question and it didn't work. After some more searching I discovered that the problem is in trying to use the typical custom event codes; 0xfff00000 or greater. After modifying the event to 0x7fffffff all works as expected.
Here's a good explanation of why it didn't work.
Custom Event via REST API
Thanks for the response
Tim