Embedded cards using APIs with pfilters - graph by options

Hi Community,

I have been embedding cards using the API with pfilters. This seems to be working well but some graphs are defaulting to graphing by day vs hour. I know I can adjust this within the card but wondered if anybody had any luck programmatically adjusting this. The documentation for APIs is a little lacklustre and am struggling to get the answer.

Thanks in advance.