When working with Sites that are not the default, you need to specify the Site when generating the ticket by using the target_site parameter:
target_site=<site id>(required if view not on Default site): Specifies the site containing the view if Tableau Server is running multiple sites and the view is on a site other than the Default site (for example,
target_site=Sales). The value you use for
<site id>should be the Site ID that was provided when the site was created. This value is case sensitive. If the Site ID is
SAles, then the
Thanks a lot, worked like a charm.