doc_out/AlertingApi.html.md in purecloud-0.44.1 vs doc_out/AlertingApi.html.md in purecloud-0.45.1
- old
+ new
@@ -392,11 +392,11 @@
<a name="post_interactionstats_rules"></a>
-## -[**InteractionStatsRule**](InteractionStatsRule.html) post_interactionstats_rules(opts)
+## -[**InteractionStatsRule**](InteractionStatsRule.html) post_interactionstats_rules(body)
Create an interaction stats rule.
@@ -415,28 +415,27 @@
config.access_token = @authToken
end
api_instance = PureCloud::AlertingApi.new
-opts = {
- body: PureCloud::InteractionStatsRule.new # InteractionStatsRule | AlertingRule
-}
+body = PureCloud::InteractionStatsRule.new # InteractionStatsRule | AlertingRule
+
begin
#Create an interaction stats rule.
- result = api_instance.post_interactionstats_rules(opts)
+ result = api_instance.post_interactionstats_rules(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling AlertingApi->post_interactionstats_rules: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**InteractionStatsRule**](InteractionStatsRule.html)| AlertingRule | [optional]
+ **body** | [**InteractionStatsRule**](InteractionStatsRule.html)| AlertingRule |
{: class="table table-striped"}
### Return type
@@ -449,11 +448,11 @@
<a name="put_interactionstats_alerts_alert_id"></a>
-## -[**UnreadStatus**](UnreadStatus.html) put_interactionstats_alerts_alert_id(alert_id, opts)
+## -[**UnreadStatus**](UnreadStatus.html) put_interactionstats_alerts_alert_id(alert_id, body)
Update an interaction stats alert read status
@@ -474,17 +473,16 @@
api_instance = PureCloud::AlertingApi.new
alert_id = "alert_id_example" # String | Alert ID
-opts = {
- body: PureCloud::UnreadStatus.new # UnreadStatus | InteractionStatsAlert
-}
+body = PureCloud::UnreadStatus.new # UnreadStatus | InteractionStatsAlert
+
begin
#Update an interaction stats alert read status
- result = api_instance.put_interactionstats_alerts_alert_id(alert_id, opts)
+ result = api_instance.put_interactionstats_alerts_alert_id(alert_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling AlertingApi->put_interactionstats_alerts_alert_id: #{e}"
end
~~~
@@ -492,11 +490,11 @@
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**alert_id** | **String**| Alert ID |
- **body** | [**UnreadStatus**](UnreadStatus.html)| InteractionStatsAlert | [optional]
+ **body** | [**UnreadStatus**](UnreadStatus.html)| InteractionStatsAlert |
{: class="table table-striped"}
### Return type
@@ -509,11 +507,11 @@
<a name="put_interactionstats_rules_rule_id"></a>
-## -[**InteractionStatsRule**](InteractionStatsRule.html) put_interactionstats_rules_rule_id(rule_id, opts)
+## -[**InteractionStatsRule**](InteractionStatsRule.html) put_interactionstats_rules_rule_id(rule_id, body)
Update an interaction stats rule
@@ -534,17 +532,16 @@
api_instance = PureCloud::AlertingApi.new
rule_id = "rule_id_example" # String | Rule ID
-opts = {
- body: PureCloud::InteractionStatsRule.new # InteractionStatsRule | AlertingRule
-}
+body = PureCloud::InteractionStatsRule.new # InteractionStatsRule | AlertingRule
+
begin
#Update an interaction stats rule
- result = api_instance.put_interactionstats_rules_rule_id(rule_id, opts)
+ result = api_instance.put_interactionstats_rules_rule_id(rule_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling AlertingApi->put_interactionstats_rules_rule_id: #{e}"
end
~~~
@@ -552,10 +549,10 @@
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**rule_id** | **String**| Rule ID |
- **body** | [**InteractionStatsRule**](InteractionStatsRule.html)| AlertingRule | [optional]
+ **body** | [**InteractionStatsRule**](InteractionStatsRule.html)| AlertingRule |
{: class="table table-striped"}
### Return type