Legacy Dev Forum Posts

 View Only

Sign Up

How can I update Agent status using API

  • 1.  How can I update Agent status using API

    Posted 06-05-2025 18:10

    GenesysCommunity | 2016-06-08 16:27:58 UTC | #1

    I have the requirement to change status on the fly. I tried with updateUserRoutingstatus function of User API but it is showing me bad requist error when I am passing Body as below.

    var body = { "userId": "70e3dab6-6e02-460d-9a78-febb22b03ddb", "status":"Available", "startTime":"2016-03-23T04:58:46.978Z"

    };

    Can you please guide me how can I change the status of the agent using API?


    KevinGlinski | 2016-06-08 16:28:19 UTC | #2

    Have you seen the tutorial on presences? It shows exactly what you are looking to do https://developer.mypurecloud.com/api/tutorials/presence/#javascript


    system | 2017-08-28 19:24:34 UTC | #3


    This post was migrated from the old Developer Forum.

    ref: 31