Presence

Set current extension user presence

Set current extension user presence.

POSThttps://HOSTNAME:8887/api/user/presence
Body
presenceenum

The specified presence of extension:

  • DO_NOT_DISTURB:
  • AVAILABLE:
  • AWAY:
  • BUSINESS_TRIP:
  • LUNCH:
DO_NOT_DISTURBAVAILABLEAWAYBUSINESS_TRIPLUNCH
presence_notestring

The presence note.

Response

OK

Request
const response = await fetch('https://HOSTNAME:8887/api/user/presence', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();