Skip to content

Latest commit

 

History

History
239 lines (153 loc) · 11.8 KB

PresenceApi.md

File metadata and controls

239 lines (153 loc) · 11.8 KB

\PresenceApi

All URIs are relative to https://platform.devtest.ringcentral.com

Method HTTP request Description
AccountPresence Get /restapi/v1.0/account/{accountId}/presence Get all user statuses
GetMonitoringExtensions Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/permission Get User Presence Permissions
GetPresenceLine Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line/{lineId} Get Monitored Extensions by Id
GetPresenceStatus Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence Get User Status
ListMonitoredExtensions Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line Get Monitored Extensions
PutMonitoringExtensions Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/permission Update User Presence Permissions
UpdatePresenceLines Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line Update Monitored Extensions
UpdatePresenceStatus Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence Update User Status

AccountPresence

AccountPresenceInfo AccountPresence(ctx, accountId) Get all user statuses

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string

Return type

AccountPresenceInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetMonitoringExtensions

MonitoringExtensionsResource GetMonitoringExtensions(ctx, extensionId, accountId) Get User Presence Permissions

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]
accountId string

Return type

MonitoringExtensionsResource

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPresenceLine

PresenceLineResource GetPresenceLine(ctx, lineId, extensionId, accountId) Get Monitored Extensions by Id

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
lineId string
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]
accountId string Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session [default to ~]

Return type

PresenceLineResource

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPresenceStatus

GetPresenceInfo GetPresenceStatus(ctx, accountId, extensionId) Get User Status

Since 1.0.2

Returns presence status of an extension or several extensions by their ID(s). Batch request is supported, see Batch Requests for details.The presenceStatus is returned as Offline (the parameters telephonyStatus, message, userStatus and dndStatus are not returned at all) for the following extension types: Department/Announcement Only/Take Messages Only (Voicemail)/Fax User/Paging Only Group/Shared Lines Group/IVR Menu/Application Extension/Park Location.If the user requests his/her own presence status, the response contains actual presence status even if the status publication is turned off.Batch request is supported. For batch requests the number of extensions in one request is limited to 30. If more extensions are included in the request, the error code 400 Bad Request is returned with the logical error code InvalidMultipartRequest and the corresponding message 'Extension Presence Info multipart request is limited to 30 extensions'.

Required Permissions

PermissionDescription
ReadPresenceGetting user presence information

Usage Plan Group

Light

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session [default to ~]
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]

Return type

GetPresenceInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListMonitoredExtensions

GetMonitoredExtensionsResponse ListMonitoredExtensions(ctx, accountId, extensionId) Get Monitored Extensions

Since 1.0.13 (Release 6.5)

Returns list of lines - extensions which presence status can be indicated and monitored on BLF-enabled (Busy Lamp Field) devices.

Required Permissions

PermissionDescription
ReadPresenceGetting user presence information

Usage Plan Group

Light

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session [default to ~]
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]

Return type

GetMonitoredExtensionsResponse

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutMonitoringExtensions

MonitoringExtensionsResource PutMonitoringExtensions(ctx, extensionId, accountId, userPresencePermissionsUpdateRequest) Update User Presence Permissions

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]
accountId string
userPresencePermissionsUpdateRequest UserPresencePermissionsUpdateRequest

Return type

MonitoringExtensionsResource

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdatePresenceLines

UpdatePresenceLinesResponse UpdatePresenceLines(ctx, accountId, extensionId, updatePresenceLinesRequest) Update Monitored Extensions

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session [default to ~]
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]
updatePresenceLinesRequest UpdatePresenceLinesRequest

Return type

UpdatePresenceLinesResponse

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdatePresenceStatus

PresenceInfoResource UpdatePresenceStatus(ctx, accountId, extensionId, presenceInfoResource) Update User Status

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session [default to ~]
extensionId string Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session [default to ~]
presenceInfoResource PresenceInfoResource

Return type

PresenceInfoResource

Authorization

OAuth2

HTTP request headers

  • Content-Type: multipart/mixed, application/json
  • Accept: multipart/mixed, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]