Any revised code samples to accomplish?
This is v1 of the API and having trouble getting to v2.
It's only the create subscription API that is used in the code shared in the solution article that you pointed. None of the parameters in that call are impacted by the API version that you use.
Are you receiving any errors? Could you elaborate more on the issue that you're facing?