doc_out/PresenceApi.html.md in purecloud-0.44.1 vs doc_out/PresenceApi.html.md in purecloud-0.45.1

- old
+ new

@@ -300,11 +300,11 @@ <a name="patch_user_id_presences_source_id"></a> -## -[**UserPresence**](UserPresence.html) patch_user_id_presences_source_id(user_id, source_id, opts) +## -[**UserPresence**](UserPresence.html) patch_user_id_presences_source_id(user_id, source_id, body) Patch a 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 '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. @@ -327,17 +327,16 @@ user_id = "user_id_example" # String | user Id source_id = "source_id_example" # String | Source -opts = { - body: PureCloud::UserPresence.new # UserPresence | -} +body = PureCloud::UserPresence.new # UserPresence | User presence + begin #Patch a user's Presence - result = api_instance.patch_user_id_presences_source_id(user_id, source_id, opts) + result = api_instance.patch_user_id_presences_source_id(user_id, source_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling PresenceApi->patch_user_id_presences_source_id: #{e}" end ~~~ @@ -346,10 +345,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **user_id** | **String**| user Id | **source_id** | **String**| Source | - **body** | [**UserPresence**](UserPresence.html)| | [optional] + **body** | [**UserPresence**](UserPresence.html)| User presence | {: class="table table-striped"} ### Return type