Updated API script for documentation.

Changed script syntax for better visualization for documentation.
[ci skip]