How it is possible to change users Profile(Available,DND) using REST-API?

Problem
Hi , how it is possible to change users Profile(Available,DND) using REST-API?
Thank you in advance for any help.
Lösung

Hi
You may find something in the API documentation

I had looked,but have not found how to change user Profile .

it looks like you need to establish an XMPP connection with the user data.

Here is an old thread with a similar question.
rest-api-xmpp-status