Flux Led/MagicLight with API

Can someone show me an API example curl call to do a custom effect fro Flux Led/MagicLight?