Passing value to REST type option list

This can be achieved with request scripts. See this post here: