I find that if you don't know how to do something using CasC, then the easiest thing to do is usually:
- edit config using the UI to define what you want to achieve
- View / Export the CasC configuration (from the "Manage" page of Jenkins)
- update your code accordingly!
Hope this helps.