When i try to instantiate a body like var body = new platformClient.UserPresence();
I got the error Uncaught TypeError: platformClient.UserPresence is not a constructor
In the source code it says in the params @param {module:purecloud-platform-client-v2/model/UserPresence} body User presence
Sorry about that. I'll clean up that reference. Models don't exist in the JavaScript SDK because they add several megabytes to the package size and provide virtually no value. To determine the body's schema, look at the API Resources documentation.