Not everything is documented there - looking at how things are done in the UI is exactly what I would suggest! See this support guide as well: