Package com.mypurecloud.sdk.v2.api
Class PresenceApi
java.lang.Object
com.mypurecloud.sdk.v2.api.PresenceApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.deletePresencedefinition(ApiRequest<Void> request) Deprecated.voiddeletePresencedefinition(String presenceId) Deprecated.voidDelete a Presence DefinitiondeletePresenceDefinition0(ApiRequest<Void> request) Delete a Presence DefinitionvoiddeletePresenceDefinition0(String definitionId) Delete a Presence DefinitiondeletePresenceDefinition0WithHttpInfo(String definitionId) Delete a Presence DefinitiondeletePresencedefinitionWithHttpInfo(String presenceId) Deprecated.voidDelete a Presence SourcedeletePresenceSource(ApiRequest<Void> request) Delete a Presence SourcevoiddeletePresenceSource(String sourceId) Delete a Presence SourcedeletePresenceSourceWithHttpInfo(String sourceId) Delete a Presence SourceDeprecated.getPresencedefinition(ApiRequest<Void> request) Deprecated.getPresencedefinition(String presenceId, String localeCode) Deprecated.Get a Presence DefinitiongetPresenceDefinition0(ApiRequest<Void> request) Get a Presence DefinitiongetPresenceDefinition0(String definitionId, String localeCode) Get a Presence DefinitiongetPresenceDefinition0WithHttpInfo(String definitionId, String localeCode) Get a Presence DefinitionDeprecated.getPresencedefinitions(ApiRequest<Void> request) Deprecated.getPresencedefinitions(Integer pageNumber, Integer pageSize, String deleted, String localeCode) Deprecated.Get a list of Presence DefinitionsgetPresenceDefinitions0(ApiRequest<Void> request) Get a list of Presence DefinitionsgetPresenceDefinitions0(String deactivated, List<String> divisionId, String localeCode) Get a list of Presence DefinitionsgetPresenceDefinitions0WithHttpInfo(String deactivated, List<String> divisionId, String localeCode) Get a list of Presence DefinitionsgetPresencedefinitionsWithHttpInfo(Integer pageNumber, Integer pageSize, String deleted, String localeCode) Deprecated.getPresencedefinitionWithHttpInfo(String presenceId, String localeCode) Deprecated.Get the presence settingsGet the presence settingsgetPresenceSettings(ApiRequest<Void> request) Get the presence settingsGet the presence settingsGet a Presence SourcegetPresenceSource(ApiRequest<Void> request) Get a Presence SourcegetPresenceSource(String sourceId) Get a Presence SourceGet a list of Presence SourcesgetPresenceSources(ApiRequest<Void> request) Get a list of Presence SourcesgetPresenceSources(String deactivated) Get a list of Presence SourcesgetPresenceSourcesWithHttpInfo(String deactivated) Get a list of Presence SourcesgetPresenceSourceWithHttpInfo(String sourceId) Get a Presence SourceGet a user's Primary Presence SourcegetPresenceUserPrimarysource(ApiRequest<Void> request) Get a user's Primary Presence SourcegetPresenceUserPrimarysource(String userId) Get a user's Primary Presence SourceGet a user's Primary Presence SourceGet the list of SystemPresencesGet the list of SystemPresencesgetSystempresences(ApiRequest<Void> request) Get the list of SystemPresencesGet the list of SystemPresencesgetUserPresence(GetUserPresenceRequest request) Get a user's Presence Get a user's presence for the specified source that is not specifically listed.getUserPresence(ApiRequest<Void> request) Get a user's Presence Get a user's presence for the specified source that is not specifically listed.getUserPresence(String userId, String sourceId) Get a user's Presence Get a user's presence for the specified source that is not specifically listed.Get a user's Genesys Cloud presence.getUserPresencesPurecloud(ApiRequest<Void> request) Get a user's Genesys Cloud presence.getUserPresencesPurecloud(String userId) Get a user's Genesys Cloud presence.Get a user's Genesys Cloud presence.getUserPresenceWithHttpInfo(String userId, String sourceId) Get a user's Presence Get a user's presence for the specified source that is not specifically listed.Get bulk user presences for a single presence sourcegetUsersPresenceBulk(ApiRequest<Void> request) Get bulk user presences for a single presence sourcegetUsersPresenceBulk(String sourceId, List<String> id) Get bulk user presences for a single presence sourcegetUsersPresenceBulkWithHttpInfo(String sourceId, List<String> id) Get bulk user presences for a single presence sourceGet bulk user presences for a Genesys Cloud (PURECLOUD) presence sourcegetUsersPresencesPurecloudBulk(ApiRequest<Void> request) Get bulk user presences for a Genesys Cloud (PURECLOUD) presence sourceGet bulk user presences for a Genesys Cloud (PURECLOUD) presence sourceGet bulk user presences for a Genesys Cloud (PURECLOUD) presence sourcePatch a user's Presence Patch a user's presence for the specified source that is not specifically listed.patchUserPresence(ApiRequest<UserPresence> request) Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed.patchUserPresence(String userId, String sourceId, UserPresence body) Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed.Patch a Genesys Cloud user's presence The presence object can be patched one of three ways.Patch a Genesys Cloud user's presence The presence object can be patched one of three ways.patchUserPresencesPurecloud(String userId, UserPresence body) Patch a Genesys Cloud user's presence The presence object can be patched one of three ways.patchUserPresencesPurecloudWithHttpInfo(String userId, UserPresence body) Patch a Genesys Cloud user's presence The presence object can be patched one of three ways.patchUserPresenceWithHttpInfo(String userId, String sourceId, UserPresence body) Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed.Deprecated.Deprecated.Deprecated.Create a Presence DefinitionCreate a Presence DefinitionCreate a Presence DefinitionCreate a Presence DefinitionDeprecated.Create a Presence SourcepostPresenceSources(ApiRequest<Source> request) Create a Presence SourcepostPresenceSources(Source body) Create a Presence SourceCreate a Presence SourceDeprecated.Deprecated.putPresencedefinition(String presenceId, OrganizationPresence body) Deprecated.Update a Presence DefinitionUpdate a Presence DefinitionputPresenceDefinition0(String definitionId, OrganizationPresenceDefinition body) Update a Presence DefinitionputPresenceDefinition0WithHttpInfo(String definitionId, OrganizationPresenceDefinition body) Update a Presence DefinitionputPresencedefinitionWithHttpInfo(String presenceId, OrganizationPresence body) Deprecated.Update the presence settingsputPresenceSettings(ApiRequest<PresenceSettings> request) Update the presence settingsUpdate the presence settingsUpdate the presence settingsUpdate a Presence SourceputPresenceSource(ApiRequest<Source> request) Update a Presence SourceputPresenceSource(String sourceId, Source body) Update a Presence SourceputPresenceSourceWithHttpInfo(String sourceId, Source body) Update a Presence SourceUpdate a user's Primary Presence SourceUpdate a user's Primary Presence SourceputPresenceUserPrimarysource(String userId, UserPrimarySource body) Update a user's Primary Presence SourceputPresenceUserPrimarysourceWithHttpInfo(String userId, UserPrimarySource body) Update a user's Primary Presence SourceUpdate bulk user PresencesputUsersPresencesBulk(ApiRequest<List<MutableUserPresence>> request) Update bulk user PresencesUpdate bulk user PresencesUpdate bulk user Presences
-
Constructor Details
-
PresenceApi
public PresenceApi() -
PresenceApi
-
-
Method Details
-
deletePresenceDefinition0
Delete a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresenceDefinition0WithHttpInfo
public ApiResponse<Void> deletePresenceDefinition0WithHttpInfo(String definitionId) throws IOException Delete a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)- Throws:
IOException- if the request fails to be processed
-
deletePresenceDefinition0
public void deletePresenceDefinition0(DeletePresenceDefinition0Request request) throws IOException, ApiException Delete a Presence Definition- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresenceDefinition0
Delete a Presence Definition- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
deletePresenceSource
Delete a Presence Source- Parameters:
sourceId- Presence Source ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresenceSourceWithHttpInfo
Delete a Presence Source- Parameters:
sourceId- Presence Source ID (required)- Throws:
IOException- if the request fails to be processed
-
deletePresenceSource
public void deletePresenceSource(DeletePresenceSourceRequest request) throws IOException, ApiException Delete a Presence Source- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresenceSource
Delete a Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
deletePresencedefinition
Deprecated.Delete a Presence Definition. Apps should migrate to use DELETE /api/v2/presence/definitions/{definitionId} instead- Parameters:
presenceId- Organization Presence ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresencedefinitionWithHttpInfo
Deprecated.Delete a Presence Definition. Apps should migrate to use DELETE /api/v2/presence/definitions/{definitionId} instead- Parameters:
presenceId- Organization Presence ID (required)- Throws:
IOException- if the request fails to be processed
-
deletePresencedefinition
public void deletePresencedefinition(DeletePresencedefinitionRequest request) throws IOException, ApiException Deprecated.Delete a Presence Definition. Apps should migrate to use DELETE /api/v2/presence/definitions/{definitionId} instead- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deletePresencedefinition
Deprecated.Delete a Presence Definition. Apps should migrate to use DELETE /api/v2/presence/definitions/{definitionId} instead- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceDefinition0
public OrganizationPresenceDefinition getPresenceDefinition0(String definitionId, String localeCode) throws IOException, ApiException Get a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceDefinition0WithHttpInfo
public ApiResponse<OrganizationPresenceDefinition> getPresenceDefinition0WithHttpInfo(String definitionId, String localeCode) throws IOException Get a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceDefinition
- Throws:
IOException- if the request fails to be processed
-
getPresenceDefinition0
public OrganizationPresenceDefinition getPresenceDefinition0(GetPresenceDefinition0Request request) throws IOException, ApiException Get a Presence Definition- Parameters:
request- The request object- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceDefinition0
public ApiResponse<OrganizationPresenceDefinition> getPresenceDefinition0(ApiRequest<Void> request) throws IOException Get a Presence Definition- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceDefinitions0
public OrganizationPresenceDefinitionEntityListing getPresenceDefinitions0(String deactivated, List<String> divisionId, String localeCode) throws IOException, ApiException Get a list of Presence Definitions- Parameters:
deactivated- Deactivated query can be TRUE or FALSE (optional, default to false)divisionId- One or more division IDs. If nothing is provided, the definitions associated withthe list of divisions that the user has access to will be returned. (optional)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceDefinitionEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceDefinitions0WithHttpInfo
public ApiResponse<OrganizationPresenceDefinitionEntityListing> getPresenceDefinitions0WithHttpInfo(String deactivated, List<String> divisionId, String localeCode) throws IOException Get a list of Presence Definitions- Parameters:
deactivated- Deactivated query can be TRUE or FALSE (optional, default to false)divisionId- One or more division IDs. If nothing is provided, the definitions associated withthe list of divisions that the user has access to will be returned. (optional)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceDefinitionEntityListing
- Throws:
IOException- if the request fails to be processed
-
getPresenceDefinitions0
public OrganizationPresenceDefinitionEntityListing getPresenceDefinitions0(GetPresenceDefinitions0Request request) throws IOException, ApiException Get a list of Presence Definitions- Parameters:
request- The request object- Returns:
- OrganizationPresenceDefinitionEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceDefinitions0
public ApiResponse<OrganizationPresenceDefinitionEntityListing> getPresenceDefinitions0(ApiRequest<Void> request) throws IOException Get a list of Presence Definitions- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceSettings
Get the presence settings- Returns:
- PresenceSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSettingsWithHttpInfo
Get the presence settings- Returns:
- PresenceSettings
- Throws:
IOException- if the request fails to be processed
-
getPresenceSettings
public PresenceSettings getPresenceSettings(GetPresenceSettingsRequest request) throws IOException, ApiException Get the presence settings- Parameters:
request- The request object- Returns:
- PresenceSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSettings
public ApiResponse<PresenceSettings> getPresenceSettings(ApiRequest<Void> request) throws IOException Get the presence settings- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceSource
Get a Presence Source- Parameters:
sourceId- Presence Source ID (required)- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSourceWithHttpInfo
Get a Presence Source- Parameters:
sourceId- Presence Source ID (required)- Returns:
- Source
- Throws:
IOException- if the request fails to be processed
-
getPresenceSource
Get a Presence Source- Parameters:
request- The request object- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSource
Get a Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceSources
Get a list of Presence Sources- Parameters:
deactivated- Deactivated query can be TRUE or FALSE (optional, default to false)- Returns:
- SourceEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSourcesWithHttpInfo
public ApiResponse<SourceEntityListing> getPresenceSourcesWithHttpInfo(String deactivated) throws IOException Get a list of Presence Sources- Parameters:
deactivated- Deactivated query can be TRUE or FALSE (optional, default to false)- Returns:
- SourceEntityListing
- Throws:
IOException- if the request fails to be processed
-
getPresenceSources
public SourceEntityListing getPresenceSources(GetPresenceSourcesRequest request) throws IOException, ApiException Get a list of Presence Sources- Parameters:
request- The request object- Returns:
- SourceEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceSources
public ApiResponse<SourceEntityListing> getPresenceSources(ApiRequest<Void> request) throws IOException Get a list of Presence Sources- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresenceUserPrimarysource
public UserPrimarySource getPresenceUserPrimarysource(String userId) throws IOException, ApiException Get a user's Primary Presence Source- Parameters:
userId- user ID (required)- Returns:
- UserPrimarySource
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceUserPrimarysourceWithHttpInfo
public ApiResponse<UserPrimarySource> getPresenceUserPrimarysourceWithHttpInfo(String userId) throws IOException Get a user's Primary Presence Source- Parameters:
userId- user ID (required)- Returns:
- UserPrimarySource
- Throws:
IOException- if the request fails to be processed
-
getPresenceUserPrimarysource
public UserPrimarySource getPresenceUserPrimarysource(GetPresenceUserPrimarysourceRequest request) throws IOException, ApiException Get a user's Primary Presence Source- Parameters:
request- The request object- Returns:
- UserPrimarySource
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresenceUserPrimarysource
public ApiResponse<UserPrimarySource> getPresenceUserPrimarysource(ApiRequest<Void> request) throws IOException Get a user's Primary Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresencedefinition
public OrganizationPresence getPresencedefinition(String presenceId, String localeCode) throws IOException, ApiException Deprecated.Get a Presence Definition. Apps should migrate to use GET /api/v2/presence/definitions/{definitionId} instead- Parameters:
presenceId- Organization Presence ID (required)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresencedefinitionWithHttpInfo
public ApiResponse<OrganizationPresence> getPresencedefinitionWithHttpInfo(String presenceId, String localeCode) throws IOException Deprecated.Get a Presence Definition. Apps should migrate to use GET /api/v2/presence/definitions/{definitionId} instead- Parameters:
presenceId- Organization Presence ID (required)localeCode- The locale code to fetch for the presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresence
- Throws:
IOException- if the request fails to be processed
-
getPresencedefinition
public OrganizationPresence getPresencedefinition(GetPresencedefinitionRequest request) throws IOException, ApiException Deprecated.Get a Presence Definition. Apps should migrate to use GET /api/v2/presence/definitions/{definitionId} instead- Parameters:
request- The request object- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresencedefinition
public ApiResponse<OrganizationPresence> getPresencedefinition(ApiRequest<Void> request) throws IOException Deprecated.Get a Presence Definition. Apps should migrate to use GET /api/v2/presence/definitions/{definitionId} instead- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getPresencedefinitions
public OrganizationPresenceEntityListing getPresencedefinitions(Integer pageNumber, Integer pageSize, String deleted, String localeCode) throws IOException, ApiException Deprecated.Get an Organization's list of Presence Definitions. Apps should migrate to use GET /api/v2/presence/definitions instead- Parameters:
pageNumber- Page number (optional, default to 1)pageSize- Page size (optional, default to 25)deleted- Deleted query can be TRUE, FALSE or ALL (optional, default to false)localeCode- The locale code to fetch for each presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresencedefinitionsWithHttpInfo
public ApiResponse<OrganizationPresenceEntityListing> getPresencedefinitionsWithHttpInfo(Integer pageNumber, Integer pageSize, String deleted, String localeCode) throws IOException Deprecated.Get an Organization's list of Presence Definitions. Apps should migrate to use GET /api/v2/presence/definitions instead- Parameters:
pageNumber- Page number (optional, default to 1)pageSize- Page size (optional, default to 25)deleted- Deleted query can be TRUE, FALSE or ALL (optional, default to false)localeCode- The locale code to fetch for each presence definition. Use ALL to fetch everything. (optional)- Returns:
- OrganizationPresenceEntityListing
- Throws:
IOException- if the request fails to be processed
-
getPresencedefinitions
public OrganizationPresenceEntityListing getPresencedefinitions(GetPresencedefinitionsRequest request) throws IOException, ApiException Deprecated.Get an Organization's list of Presence Definitions. Apps should migrate to use GET /api/v2/presence/definitions instead- Parameters:
request- The request object- Returns:
- OrganizationPresenceEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getPresencedefinitions
public ApiResponse<OrganizationPresenceEntityListing> getPresencedefinitions(ApiRequest<Void> request) throws IOException Deprecated.Get an Organization's list of Presence Definitions. Apps should migrate to use GET /api/v2/presence/definitions instead- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getSystempresences
Get the list of SystemPresences- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getSystempresencesWithHttpInfo
Get the list of SystemPresences- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
getSystempresences
public List<SystemPresence> getSystempresences(GetSystempresencesRequest request) throws IOException, ApiException Get the list of SystemPresences- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getSystempresences
public ApiResponse<List<SystemPresence>> getSystempresences(ApiRequest<Void> request) throws IOException Get the list of SystemPresences- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUserPresence
public UserPresence getUserPresence(String userId, String sourceId) throws IOException, ApiException Get a user's Presence Get a user's presence for the specified source that is not specifically listed. Used to support custom presence sources. This endpoint does not support registered presence sources.- Parameters:
userId- user Id (required)sourceId- Presence source ID (required)- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserPresenceWithHttpInfo
public ApiResponse<UserPresence> getUserPresenceWithHttpInfo(String userId, String sourceId) throws IOException Get a user's Presence Get a user's presence for the specified source that is not specifically listed. Used to support custom presence sources. This endpoint does not support registered presence sources.- Parameters:
userId- user Id (required)sourceId- Presence source ID (required)- Returns:
- UserPresence
- Throws:
IOException- if the request fails to be processed
-
getUserPresence
public UserPresence getUserPresence(GetUserPresenceRequest request) throws IOException, ApiException Get a user's Presence Get a user's presence for the specified source that is not specifically listed. Used to support custom presence sources. This endpoint does not support registered presence sources.- Parameters:
request- The request object- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserPresence
Get a user's Presence Get a user's presence for the specified source that is not specifically listed. Used to support custom presence sources. This endpoint does not support registered presence sources.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUserPresencesPurecloud
Get a user's Genesys Cloud presence. Get the default Genesys Cloud user presence source PURECLOUD- Parameters:
userId- user Id (required)- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserPresencesPurecloudWithHttpInfo
public ApiResponse<UserPresence> getUserPresencesPurecloudWithHttpInfo(String userId) throws IOException Get a user's Genesys Cloud presence. Get the default Genesys Cloud user presence source PURECLOUD- Parameters:
userId- user Id (required)- Returns:
- UserPresence
- Throws:
IOException- if the request fails to be processed
-
getUserPresencesPurecloud
public UserPresence getUserPresencesPurecloud(GetUserPresencesPurecloudRequest request) throws IOException, ApiException Get a user's Genesys Cloud presence. Get the default Genesys Cloud user presence source PURECLOUD- Parameters:
request- The request object- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserPresencesPurecloud
public ApiResponse<UserPresence> getUserPresencesPurecloud(ApiRequest<Void> request) throws IOException Get a user's Genesys Cloud presence. Get the default Genesys Cloud user presence source PURECLOUD- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersPresenceBulk
public List<UcUserPresence> getUsersPresenceBulk(String sourceId, List<String> id) throws IOException, ApiException Get bulk user presences for a single presence source- Parameters:
sourceId- The requested presence source ID. (required)id- A comma separated list of user IDs to fetch their presence status in bulk. Limit 50. (optional)- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersPresenceBulkWithHttpInfo
public ApiResponse<List<UcUserPresence>> getUsersPresenceBulkWithHttpInfo(String sourceId, List<String> id) throws IOException Get bulk user presences for a single presence source- Parameters:
sourceId- The requested presence source ID. (required)id- A comma separated list of user IDs to fetch their presence status in bulk. Limit 50. (optional)- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
getUsersPresenceBulk
public List<UcUserPresence> getUsersPresenceBulk(GetUsersPresenceBulkRequest request) throws IOException, ApiException Get bulk user presences for a single presence source- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersPresenceBulk
public ApiResponse<List<UcUserPresence>> getUsersPresenceBulk(ApiRequest<Void> request) throws IOException Get bulk user presences for a single presence source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersPresencesPurecloudBulk
public List<UcUserPresence> getUsersPresencesPurecloudBulk(List<String> id) throws IOException, ApiException Get bulk user presences for a Genesys Cloud (PURECLOUD) presence source- Parameters:
id- A comma separated list of user IDs to fetch their presence status in bulk. Limit 50. (optional)- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersPresencesPurecloudBulkWithHttpInfo
public ApiResponse<List<UcUserPresence>> getUsersPresencesPurecloudBulkWithHttpInfo(List<String> id) throws IOException Get bulk user presences for a Genesys Cloud (PURECLOUD) presence source- Parameters:
id- A comma separated list of user IDs to fetch their presence status in bulk. Limit 50. (optional)- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
getUsersPresencesPurecloudBulk
public List<UcUserPresence> getUsersPresencesPurecloudBulk(GetUsersPresencesPurecloudBulkRequest request) throws IOException, ApiException Get bulk user presences for a Genesys Cloud (PURECLOUD) presence source- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersPresencesPurecloudBulk
public ApiResponse<List<UcUserPresence>> getUsersPresencesPurecloudBulk(ApiRequest<Void> request) throws IOException Get bulk user presences for a Genesys Cloud (PURECLOUD) presence source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchUserPresence
public UserPresence patchUserPresence(String userId, String sourceId, UserPresence body) throws IOException, ApiException Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed. This endpoint does not support registered presence sources. The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the 'source' defined in the path as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
userId- user Id (required)sourceId- Presence source ID (required)body- User presence (required)- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserPresenceWithHttpInfo
public ApiResponse<UserPresence> patchUserPresenceWithHttpInfo(String userId, String sourceId, UserPresence body) throws IOException Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed. This endpoint does not support registered presence sources. The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the 'source' defined in the path as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
userId- user Id (required)sourceId- Presence source ID (required)body- User presence (required)- Returns:
- UserPresence
- Throws:
IOException- if the request fails to be processed
-
patchUserPresence
public UserPresence patchUserPresence(PatchUserPresenceRequest request) throws IOException, ApiException Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed. This endpoint does not support registered presence sources. The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the 'source' defined in the path as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
request- The request object- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserPresence
public ApiResponse<UserPresence> patchUserPresence(ApiRequest<UserPresence> request) throws IOException Patch a user's Presence Patch a user's presence for the specified source that is not specifically listed. This endpoint does not support registered presence sources. The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the 'source' defined in the path as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchUserPresencesPurecloud
public UserPresence patchUserPresencesPurecloud(String userId, UserPresence body) throws IOException, ApiException Patch a Genesys Cloud user's presence The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the PURECLOUD source as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
userId- user Id (required)body- User presence (required)- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserPresencesPurecloudWithHttpInfo
public ApiResponse<UserPresence> patchUserPresencesPurecloudWithHttpInfo(String userId, UserPresence body) throws IOException Patch a Genesys Cloud user's presence The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the PURECLOUD source as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
userId- user Id (required)body- User presence (required)- Returns:
- UserPresence
- Throws:
IOException- if the request fails to be processed
-
patchUserPresencesPurecloud
public UserPresence patchUserPresencesPurecloud(PatchUserPresencesPurecloudRequest request) throws IOException, ApiException Patch a Genesys Cloud user's presence The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the PURECLOUD source as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
request- The request object- Returns:
- UserPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserPresencesPurecloud
public ApiResponse<UserPresence> patchUserPresencesPurecloud(ApiRequest<UserPresence> request) throws IOException Patch a Genesys Cloud user's presence The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the PURECLOUD source as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postPresenceDefinitions0
public OrganizationPresenceDefinition postPresenceDefinitions0(OrganizationPresenceDefinition body) throws IOException, ApiException Create a Presence Definition- Parameters:
body- The Presence Definition to create (required)- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresenceDefinitions0WithHttpInfo
public ApiResponse<OrganizationPresenceDefinition> postPresenceDefinitions0WithHttpInfo(OrganizationPresenceDefinition body) throws IOException Create a Presence Definition- Parameters:
body- The Presence Definition to create (required)- Returns:
- OrganizationPresenceDefinition
- Throws:
IOException- if the request fails to be processed
-
postPresenceDefinitions0
public OrganizationPresenceDefinition postPresenceDefinitions0(PostPresenceDefinitions0Request request) throws IOException, ApiException Create a Presence Definition- Parameters:
request- The request object- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresenceDefinitions0
public ApiResponse<OrganizationPresenceDefinition> postPresenceDefinitions0(ApiRequest<OrganizationPresenceDefinition> request) throws IOException Create a Presence Definition- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postPresenceSources
Create a Presence Source- Parameters:
body- The Presence Source to create (required)- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresenceSourcesWithHttpInfo
Create a Presence Source- Parameters:
body- The Presence Source to create (required)- Returns:
- Source
- Throws:
IOException- if the request fails to be processed
-
postPresenceSources
public Source postPresenceSources(PostPresenceSourcesRequest request) throws IOException, ApiException Create a Presence Source- Parameters:
request- The request object- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresenceSources
Create a Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postPresencedefinitions
public OrganizationPresence postPresencedefinitions(OrganizationPresence body) throws IOException, ApiException Deprecated.Create a Presence Definition. Apps should migrate to use POST /api/v2/presence/definitions instead- Parameters:
body- The Presence Definition to create (required)- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresencedefinitionsWithHttpInfo
public ApiResponse<OrganizationPresence> postPresencedefinitionsWithHttpInfo(OrganizationPresence body) throws IOException Deprecated.Create a Presence Definition. Apps should migrate to use POST /api/v2/presence/definitions instead- Parameters:
body- The Presence Definition to create (required)- Returns:
- OrganizationPresence
- Throws:
IOException- if the request fails to be processed
-
postPresencedefinitions
public OrganizationPresence postPresencedefinitions(PostPresencedefinitionsRequest request) throws IOException, ApiException Deprecated.Create a Presence Definition. Apps should migrate to use POST /api/v2/presence/definitions instead- Parameters:
request- The request object- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postPresencedefinitions
public ApiResponse<OrganizationPresence> postPresencedefinitions(ApiRequest<OrganizationPresence> request) throws IOException Deprecated.Create a Presence Definition. Apps should migrate to use POST /api/v2/presence/definitions instead- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putPresenceDefinition0
public OrganizationPresenceDefinition putPresenceDefinition0(String definitionId, OrganizationPresenceDefinition body) throws IOException, ApiException Update a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)body- The updated Presence Definition (required)- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceDefinition0WithHttpInfo
public ApiResponse<OrganizationPresenceDefinition> putPresenceDefinition0WithHttpInfo(String definitionId, OrganizationPresenceDefinition body) throws IOException Update a Presence Definition- Parameters:
definitionId- Presence Definition ID (required)body- The updated Presence Definition (required)- Returns:
- OrganizationPresenceDefinition
- Throws:
IOException- if the request fails to be processed
-
putPresenceDefinition0
public OrganizationPresenceDefinition putPresenceDefinition0(PutPresenceDefinition0Request request) throws IOException, ApiException Update a Presence Definition- Parameters:
request- The request object- Returns:
- OrganizationPresenceDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceDefinition0
public ApiResponse<OrganizationPresenceDefinition> putPresenceDefinition0(ApiRequest<OrganizationPresenceDefinition> request) throws IOException Update a Presence Definition- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putPresenceSettings
Update the presence settings- Parameters:
body- Presence Settings (required)- Returns:
- PresenceSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceSettingsWithHttpInfo
public ApiResponse<PresenceSettings> putPresenceSettingsWithHttpInfo(PresenceSettings body) throws IOException Update the presence settings- Parameters:
body- Presence Settings (required)- Returns:
- PresenceSettings
- Throws:
IOException- if the request fails to be processed
-
putPresenceSettings
public PresenceSettings putPresenceSettings(PutPresenceSettingsRequest request) throws IOException, ApiException Update the presence settings- Parameters:
request- The request object- Returns:
- PresenceSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceSettings
public ApiResponse<PresenceSettings> putPresenceSettings(ApiRequest<PresenceSettings> request) throws IOException Update the presence settings- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putPresenceSource
Update a Presence Source- Parameters:
sourceId- Presence Source ID (required)body- The updated Presence Source (required)- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceSourceWithHttpInfo
public ApiResponse<Source> putPresenceSourceWithHttpInfo(String sourceId, Source body) throws IOException Update a Presence Source- Parameters:
sourceId- Presence Source ID (required)body- The updated Presence Source (required)- Returns:
- Source
- Throws:
IOException- if the request fails to be processed
-
putPresenceSource
Update a Presence Source- Parameters:
request- The request object- Returns:
- Source
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceSource
Update a Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putPresenceUserPrimarysource
public UserPrimarySource putPresenceUserPrimarysource(String userId, UserPrimarySource body) throws IOException, ApiException Update a user's Primary Presence Source- Parameters:
userId- user ID (required)body- Primary Source (required)- Returns:
- UserPrimarySource
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceUserPrimarysourceWithHttpInfo
public ApiResponse<UserPrimarySource> putPresenceUserPrimarysourceWithHttpInfo(String userId, UserPrimarySource body) throws IOException Update a user's Primary Presence Source- Parameters:
userId- user ID (required)body- Primary Source (required)- Returns:
- UserPrimarySource
- Throws:
IOException- if the request fails to be processed
-
putPresenceUserPrimarysource
public UserPrimarySource putPresenceUserPrimarysource(PutPresenceUserPrimarysourceRequest request) throws IOException, ApiException Update a user's Primary Presence Source- Parameters:
request- The request object- Returns:
- UserPrimarySource
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresenceUserPrimarysource
public ApiResponse<UserPrimarySource> putPresenceUserPrimarysource(ApiRequest<UserPrimarySource> request) throws IOException Update a user's Primary Presence Source- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putPresencedefinition
public OrganizationPresence putPresencedefinition(String presenceId, OrganizationPresence body) throws IOException, ApiException Deprecated.Update a Presence Definition. Apps should migrate to use PUT /api/v2/presence/definitions/{definitionId} instead)- Parameters:
presenceId- Organization Presence ID (required)body- The OrganizationPresence to update (required)- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresencedefinitionWithHttpInfo
public ApiResponse<OrganizationPresence> putPresencedefinitionWithHttpInfo(String presenceId, OrganizationPresence body) throws IOException Deprecated.Update a Presence Definition. Apps should migrate to use PUT /api/v2/presence/definitions/{definitionId} instead)- Parameters:
presenceId- Organization Presence ID (required)body- The OrganizationPresence to update (required)- Returns:
- OrganizationPresence
- Throws:
IOException- if the request fails to be processed
-
putPresencedefinition
public OrganizationPresence putPresencedefinition(PutPresencedefinitionRequest request) throws IOException, ApiException Deprecated.Update a Presence Definition. Apps should migrate to use PUT /api/v2/presence/definitions/{definitionId} instead)- Parameters:
request- The request object- Returns:
- OrganizationPresence
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putPresencedefinition
public ApiResponse<OrganizationPresence> putPresencedefinition(ApiRequest<OrganizationPresence> request) throws IOException Deprecated.Update a Presence Definition. Apps should migrate to use PUT /api/v2/presence/definitions/{definitionId} instead)- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putUsersPresencesBulk
public List<UserPresence> putUsersPresencesBulk(List<MutableUserPresence> body) throws IOException, ApiException Update bulk user Presences- Parameters:
body- List of User presences (required)- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putUsersPresencesBulkWithHttpInfo
public ApiResponse<List<UserPresence>> putUsersPresencesBulkWithHttpInfo(List<MutableUserPresence> body) throws IOException Update bulk user Presences- Parameters:
body- List of User presences (required)- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
putUsersPresencesBulk
public List<UserPresence> putUsersPresencesBulk(PutUsersPresencesBulkRequest request) throws IOException, ApiException Update bulk user Presences- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putUsersPresencesBulk
public ApiResponse<List<UserPresence>> putUsersPresencesBulk(ApiRequest<List<MutableUserPresence>> request) throws IOException Update bulk user Presences- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-