That functionality isnt available in API 2.5, but was a new feature in 2.8 (Tableau 10.5)
You will need to look here for the features of 2.5
All the best
Thank you, Glen, for the reply
Ya, I can confirm that it was only available in the recent versions.