API exporting dashboard as PDF paper Format
Hi,
Recently upgraded to Sisense Linux which required updating some syntax of API calls. Managed to get the exporting call working, however, having an issue with the "paperFormat" parameter. Pre-upgrade I was able to use "paperFormat": "letter" to export a dashboard in US Letter format. Now it's returning an error code that it doesn't recognize this value. I've tried "Letter" and "US Letter" returning a similar issue.
Seems to work fine when "paperFormat": "A4". Or exporting "Letter" via the UI.
Is there a list of valid values that is parameter can accept? Or what is the correct value of "letter" that the API accepts.
Thanks,
Hey hamsolo ,
The Paper format supports the following enum options: [A0, A1, A2, A3, A4, A5, LEGAL, LETTER, TABLOID].
Using "paperFormat": "Letter" in the API results in the error: "No enum match for: Letter", as the value is case-sensitive and must be in uppercase. To resolve this issue, use "paperFormat": "LETTER" in the endpoint body.Best regards