Legacy Dev Forum Posts

 View Only

Sign Up

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

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

    Posted 06-05-2025 18:20

    Wang_Jiajun | 2021-11-08 04:49:11 UTC | #1

    I followed the PureCloud doc and wrote below code by using interval] argument. ![image|690x404 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?


    anon11147534 | 2021-11-08 08:50:11 UTC | #2

    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"

    system | 2021-12-09 08:50:22 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 12576