Got error when using PureCloudPlatformClientV2.UserDetailsQuery(interval="YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss")

I followed the PureCloud doc and wrote below code by using [interval] argument.


UserDetailsQuery (genesys.cloud)
body = PureCloudPlatformClientV2.UserDetailsQuery(interval="2021-01-01T19:01:01/2021-01-02T19:01:01")
But got the below error mesg.
TypeError: init() got an unexpected keyword argument 'interval'

Can you help on it? any good practice before on this issue? or my syntax mistake?

Models in the python SDK don't take properties in the constructor. You have to initialize an empty object and then set the properties individually.

Example:

body = PureCloudPlatformClientV2.UserDetailsQuery()
body.interval = "2021-01-01T19:01:01/2021-01-02T19:01:01"

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.