purecloud 0.61.1 → 0.62.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e4c449a9c377e603c23079d4e7ad1a26e8dd088
4
- data.tar.gz: 786a3f0cbad5b9d123a0178f96454c4311adca37
3
+ metadata.gz: b46bacd87b4f9a1d88a17296f8cad95eb49f7a80
4
+ data.tar.gz: a6d7b32ff04575708e03c554f50526ce3563e3b6
5
5
  SHA512:
6
- metadata.gz: 1b8d2a3b7adbb7a4347c35d7248fe4fa6c84e6b0c4c0affa5099d54a093345ef091844d64fca2470c37e66128f5abc2873277935af27dfcc687cf6ea7e354d21
7
- data.tar.gz: 94e4ac80caaba0ce487fff20299bea2f65992a5a9c1e08c97d91c97fb2b2200779584681994618cf6b418499d0ededd834f2c52e68d31b02d403358a768fcd12
6
+ metadata.gz: 86948295aa10846bebb08bc288d4fa2f3fab69d27cb7d0b0eac20af7656082570f8bc43e9f02fba17bf8fd044ea64bd121324d0b963baeeecc526ce77ab8a4e4
7
+ data.tar.gz: 8bd5572a260b3e1a642f2fe23232bbdd2b3fac9b107894d8be4c01c409b2777de3a5f94889c793a68ac37bef2085bb71bbede2160533c325b4bfd1d003923b95
data/README.md CHANGED
@@ -9,8 +9,8 @@ With the PureCloud Platform API, you can control all aspects of your PureCloud e
9
9
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
10
10
 
11
11
  - API version: v2
12
- - Package version: 0.61.1
13
- - Build date: 2016-12-20T22:02:42.508Z
12
+ - Package version: 0.62.1
13
+ - Build date: 2016-12-28T20:28:45.785Z
14
14
 
15
15
  For more information, please visit [https://developer.mypurecloud.com](https://developer.mypurecloud.com)
16
16
 
@@ -18,7 +18,7 @@ For more information, please visit [https://developer.mypurecloud.com](https://d
18
18
 
19
19
  ### from rubygems.org
20
20
 
21
- gem 'purecloud', '~> 0.61.1'
21
+ gem 'purecloud', '~> 0.62.1'
22
22
 
23
23
  ### Install from Git
24
24
 
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "notifications": [
3
+ {
4
+ "topic": "billing.tasks.{id}",
5
+ "class": "BillingTaskResultNotification"
6
+ },
3
7
  {
4
8
  "topic": "v2.contentmanagement.documents.{id}",
5
9
  "class": "DocumentDataNotification"
@@ -1 +1 @@
1
- {"gemVersion":"0.61.1","gemName":"purecloud","moduleName":"PureCloud","gemLicense":"MIT","gemSummary":"PureCloud Platform API Library","gemDescription":"A Ruby library to interface with the PureCloud Platform API","gemHomepage":"https://developer.mypurecloud.com","gemAuthor":"Kevin Glinski","gemAuthorEmail":"Kevin.Glinski@inin.com","httpUserAgent":"PureCloud SDK/Ruby 0.61.1","gitUserId":"mypurecloud","gitRepoId":"purecloud_api_sdk_ruby"}
1
+ {"gemVersion":"0.62.1","gemName":"purecloud","moduleName":"PureCloud","gemLicense":"MIT","gemSummary":"PureCloud Platform API Library","gemDescription":"A Ruby library to interface with the PureCloud Platform API","gemHomepage":"https://developer.mypurecloud.com","gemAuthor":"Kevin Glinski","gemAuthorEmail":"Kevin.Glinski@inin.com","httpUserAgent":"PureCloud SDK/Ruby 0.62.1","gitUserId":"mypurecloud","gitRepoId":"purecloud_api_sdk_ruby"}
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: BillingTaskResultNotification
3
+ ---
4
+ ## PureCloud::BillingTaskResultNotification
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **task_type** | **String** | | [optional] |
13
+ | **status** | **String** | | [optional] |
14
+ | **result_id** | **String** | | [optional] |
15
+ | **result_uri** | **String** | | [optional] |
16
+ | **result_download_url** | **String** | | [optional] |
17
+ | **error_code** | **String** | | [optional] |
18
+ | **additional_properties** | **Object** | | [optional] |
19
+ {: class="table table-striped"}
20
+
21
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: CampaignRule
3
+ ---
4
+ ## PureCloud::CampaignRule
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **date_created** | **DateTime** | Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
13
+ | **date_modified** | **DateTime** | Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
14
+ | **version** | **Integer** | Required for updates, must match the version number of the most recent update | [optional] |
15
+ | **campaign_rule_entities** | [**CampaignRuleEntities**](CampaignRuleEntities.html) | the list of entities the rule monitors | |
16
+ | **campaign_rule_conditions** | [**Array<CampaignRuleCondition>**](CampaignRuleCondition.html) | the list of conditions the are evaluated | |
17
+ | **campaign_rule_actions** | [**Array<CampaignRuleAction>**](CampaignRuleAction.html) | the list of actions that are executed if the conditions are satisfied | |
18
+ | **match_any_conditions** | **BOOLEAN** | | [optional] [default to false]|
19
+ | **enabled** | **BOOLEAN** | | [optional] [default to false]|
20
+ | **self_uri** | **String** | The URI for this object | [optional] |
21
+ {: class="table table-striped"}
22
+
23
+
@@ -0,0 +1,16 @@
1
+ ---
2
+ title: CampaignRuleAction
3
+ ---
4
+ ## PureCloud::CampaignRuleAction
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | | [optional] |
11
+ | **parameters** | **Hash<String, String>** | | [optional] |
12
+ | **action_type** | **String** | | [optional] |
13
+ | **campaign_rule_action_entities** | [**CampaignRuleActionEntities**](CampaignRuleActionEntities.html) | | [optional] |
14
+ {: class="table table-striped"}
15
+
16
+
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: CampaignRuleActionEntities
3
+ ---
4
+ ## PureCloud::CampaignRuleActionEntities
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **campaigns** | [**Array<UriReference>**](UriReference.html) | | [optional] |
11
+ | **sequences** | [**Array<UriReference>**](UriReference.html) | | [optional] |
12
+ | **use_triggering_entity** | **BOOLEAN** | | [optional] [default to false]|
13
+ {: class="table table-striped"}
14
+
15
+
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: CampaignRuleCondition
3
+ ---
4
+ ## PureCloud::CampaignRuleCondition
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | | [optional] |
11
+ | **parameters** | **Hash<String, String>** | | [optional] |
12
+ | **condition_type** | **String** | | [optional] |
13
+ {: class="table table-striped"}
14
+
15
+
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: CampaignRuleEntities
3
+ ---
4
+ ## PureCloud::CampaignRuleEntities
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **campaigns** | [**Array<UriReference>**](UriReference.html) | | [optional] |
11
+ | **sequences** | [**Array<UriReference>**](UriReference.html) | | [optional] |
12
+ {: class="table table-striped"}
13
+
14
+
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: CampaignRuleEntityListing
3
+ ---
4
+ ## PureCloud::CampaignRuleEntityListing
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **entities** | [**Array<CampaignRule>**](CampaignRule.html) | | [optional] |
11
+ | **page_size** | **Integer** | | [optional] |
12
+ | **page_number** | **Integer** | | [optional] |
13
+ | **total** | **Integer** | | [optional] |
14
+ | **self_uri** | **String** | | [optional] |
15
+ | **first_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
17
+ | **next_uri** | **String** | | [optional] |
18
+ | **last_uri** | **String** | | [optional] |
19
+ | **page_count** | **Integer** | | [optional] |
20
+ {: class="table table-striped"}
21
+
22
+
@@ -11,6 +11,7 @@ Method | HTTP request | Description
11
11
  |[**delete_attemptlimits_attemptlimits_id**](OutboundApi.html#delete_attemptlimits_attemptlimits_id) | **DELETE** /api/v2/outbound/attemptlimits/{attemptLimitsId} | Delete attempt limits|
12
12
  |[**delete_callabletimesets_callabletimeset_id**](OutboundApi.html#delete_callabletimesets_callabletimeset_id) | **DELETE** /api/v2/outbound/callabletimesets/{callableTimeSetId} | Delete callable time set|
13
13
  |[**delete_callanalysisresponsesets_callanalysisset_id**](OutboundApi.html#delete_callanalysisresponsesets_callanalysisset_id) | **DELETE** /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} | Delete a dialer call analysis response set.|
14
+ |[**delete_campaignrules_campaignrule_id**](OutboundApi.html#delete_campaignrules_campaignrule_id) | **DELETE** /api/v2/outbound/campaignrules/{campaignRuleId} | Delete Campaign Rule|
14
15
  |[**delete_campaigns_campaign_id**](OutboundApi.html#delete_campaigns_campaign_id) | **DELETE** /api/v2/outbound/campaigns/{campaignId} | Delete a campaign.|
15
16
  |[**delete_campaigns_campaign_id_progress**](OutboundApi.html#delete_campaigns_campaign_id_progress) | **DELETE** /api/v2/outbound/campaigns/{campaignId}/progress | Reset campaign progress and recycle the campaign|
16
17
  |[**delete_contactlists_contactlist_id**](OutboundApi.html#delete_contactlists_contactlist_id) | **DELETE** /api/v2/outbound/contactlists/{contactListId} | Delete a contact list.|
@@ -26,6 +27,8 @@ Method | HTTP request | Description
26
27
  |[**get_callabletimesets_callabletimeset_id**](OutboundApi.html#get_callabletimesets_callabletimeset_id) | **GET** /api/v2/outbound/callabletimesets/{callableTimeSetId} | Get callable time set|
27
28
  |[**get_callanalysisresponsesets**](OutboundApi.html#get_callanalysisresponsesets) | **GET** /api/v2/outbound/callanalysisresponsesets | Query a list of dialer call analysis response sets.|
28
29
  |[**get_callanalysisresponsesets_callanalysisset_id**](OutboundApi.html#get_callanalysisresponsesets_callanalysisset_id) | **GET** /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} | Get a dialer call analysis response set.|
30
+ |[**get_campaignrules**](OutboundApi.html#get_campaignrules) | **GET** /api/v2/outbound/campaignrules | Query Campaign Rule list|
31
+ |[**get_campaignrules_campaignrule_id**](OutboundApi.html#get_campaignrules_campaignrule_id) | **GET** /api/v2/outbound/campaignrules/{campaignRuleId} | Get Campaign Rule|
29
32
  |[**get_campaigns**](OutboundApi.html#get_campaigns) | **GET** /api/v2/outbound/campaigns | Query a list of dialer campaigns.|
30
33
  |[**get_campaigns_campaign_id**](OutboundApi.html#get_campaigns_campaign_id) | **GET** /api/v2/outbound/campaigns/{campaignId} | Get dialer campaign.|
31
34
  |[**get_campaigns_campaign_id_diagnostics**](OutboundApi.html#get_campaigns_campaign_id_diagnostics) | **GET** /api/v2/outbound/campaigns/{campaignId}/diagnostics | Get campaign diagnostics|
@@ -54,6 +57,7 @@ Method | HTTP request | Description
54
57
  |[**post_audits**](OutboundApi.html#post_audits) | **POST** /api/v2/outbound/audits | Retrieves audits for dialer.|
55
58
  |[**post_callabletimesets**](OutboundApi.html#post_callabletimesets) | **POST** /api/v2/outbound/callabletimesets | Create callable time set|
56
59
  |[**post_callanalysisresponsesets**](OutboundApi.html#post_callanalysisresponsesets) | **POST** /api/v2/outbound/callanalysisresponsesets | Create a dialer call analysis response set.|
60
+ |[**post_campaignrules**](OutboundApi.html#post_campaignrules) | **POST** /api/v2/outbound/campaignrules | Create Campaign Rule|
57
61
  |[**post_campaigns**](OutboundApi.html#post_campaigns) | **POST** /api/v2/outbound/campaigns | Create a campaign.|
58
62
  |[**post_campaigns_campaign_id_callback_schedule**](OutboundApi.html#post_campaigns_campaign_id_callback_schedule) | **POST** /api/v2/outbound/campaigns/{campaignId}/callback/schedule | Schedule a Callback for a Dialer Campaign (Deprecated)|
59
63
  |[**post_campaigns_progress**](OutboundApi.html#post_campaigns_progress) | **POST** /api/v2/outbound/campaigns/progress | Get progress for a list of campaigns|
@@ -69,6 +73,7 @@ Method | HTTP request | Description
69
73
  |[**put_attemptlimits_attemptlimits_id**](OutboundApi.html#put_attemptlimits_attemptlimits_id) | **PUT** /api/v2/outbound/attemptlimits/{attemptLimitsId} | Update attempt limits|
70
74
  |[**put_callabletimesets_callabletimeset_id**](OutboundApi.html#put_callabletimesets_callabletimeset_id) | **PUT** /api/v2/outbound/callabletimesets/{callableTimeSetId} | Update callable time set|
71
75
  |[**put_callanalysisresponsesets_callanalysisset_id**](OutboundApi.html#put_callanalysisresponsesets_callanalysisset_id) | **PUT** /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} | Update a dialer call analysis response set.|
76
+ |[**put_campaignrules_campaignrule_id**](OutboundApi.html#put_campaignrules_campaignrule_id) | **PUT** /api/v2/outbound/campaignrules/{campaignRuleId} | Update Campaign Rule|
72
77
  |[**put_campaigns_campaign_id**](OutboundApi.html#put_campaigns_campaign_id) | **PUT** /api/v2/outbound/campaigns/{campaignId} | Update a campaign.|
73
78
  |[**put_campaigns_campaign_id_agents_user_id**](OutboundApi.html#put_campaigns_campaign_id_agents_user_id) | **PUT** /api/v2/outbound/campaigns/{campaignId}/agents/{userId} | Send notification that an agent's state changed |
74
79
  |[**put_contactlists_contactlist_id**](OutboundApi.html#put_contactlists_contactlist_id) | **PUT** /api/v2/outbound/contactlists/{contactListId} | Update a contact list.|
@@ -249,6 +254,62 @@ Name | Type | Description | Notes
249
254
 
250
255
 
251
256
 
257
+ <a name="delete_campaignrules_campaignrule_id"></a>
258
+
259
+ ## -String** delete_campaignrules_campaignrule_id(campaign_rule_id)
260
+
261
+ Delete Campaign Rule
262
+
263
+
264
+
265
+ ### Example
266
+ ~~~ruby
267
+ # load the gem
268
+ require 'purecloud'
269
+ # setup authorization
270
+ @secret = ENV['PURECLOUD_SECRET']
271
+ @id = ENV['PURECLOUD_CLIENT_ID']
272
+ environment = "mypurecloud.com"
273
+
274
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
275
+
276
+ PureCloud.configure do |config|
277
+ config.access_token = @authToken
278
+ end
279
+
280
+ api_instance = PureCloud::OutboundApi.new
281
+
282
+ campaign_rule_id = "campaign_rule_id_example" # String | Campaign Rule ID
283
+
284
+
285
+ begin
286
+ #Delete Campaign Rule
287
+ result = api_instance.delete_campaignrules_campaignrule_id(campaign_rule_id)
288
+ p result
289
+ rescue PureCloud::ApiError => e
290
+ puts "Exception when calling OutboundApi->delete_campaignrules_campaignrule_id: #{e}"
291
+ end
292
+ ~~~
293
+
294
+ ### Parameters
295
+
296
+ Name | Type | Description | Notes
297
+ ------------- | ------------- | ------------- | -------------
298
+ **campaign_rule_id** | **String**| Campaign Rule ID |
299
+ {: class="table table-striped"}
300
+
301
+
302
+ ### Return type
303
+
304
+ **String**
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: application/json
309
+ - **Accept**: application/json
310
+
311
+
312
+
252
313
  <a name="delete_campaigns_campaign_id"></a>
253
314
 
254
315
  ## -String** delete_campaigns_campaign_id(campaign_id)
@@ -1125,6 +1186,129 @@ Name | Type | Description | Notes
1125
1186
 
1126
1187
 
1127
1188
 
1189
+ <a name="get_campaignrules"></a>
1190
+
1191
+ ## -[**CampaignRuleEntityListing**](CampaignRuleEntityListing.html) get_campaignrules(opts)
1192
+
1193
+ Query Campaign Rule list
1194
+
1195
+
1196
+
1197
+ ### Example
1198
+ ~~~ruby
1199
+ # load the gem
1200
+ require 'purecloud'
1201
+ # setup authorization
1202
+ @secret = ENV['PURECLOUD_SECRET']
1203
+ @id = ENV['PURECLOUD_CLIENT_ID']
1204
+ environment = "mypurecloud.com"
1205
+
1206
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
1207
+
1208
+ PureCloud.configure do |config|
1209
+ config.access_token = @authToken
1210
+ end
1211
+
1212
+ api_instance = PureCloud::OutboundApi.new
1213
+
1214
+ opts = {
1215
+ page_size: 25, # Integer | Page size
1216
+ page_number: 1, # Integer | Page number
1217
+ filter_type: "PREFIX", # String | Filter type
1218
+ name: "name_example", # String | Name
1219
+ sort_by: "sort_by_example", # String | Sort by
1220
+ sort_order: "a" # String | Sort order
1221
+ }
1222
+
1223
+ begin
1224
+ #Query Campaign Rule list
1225
+ result = api_instance.get_campaignrules(opts)
1226
+ p result
1227
+ rescue PureCloud::ApiError => e
1228
+ puts "Exception when calling OutboundApi->get_campaignrules: #{e}"
1229
+ end
1230
+ ~~~
1231
+
1232
+ ### Parameters
1233
+
1234
+ Name | Type | Description | Notes
1235
+ ------------- | ------------- | ------------- | -------------
1236
+ **page_size** | **Integer**| Page size | [optional] [default to 25]
1237
+ **page_number** | **Integer**| Page number | [optional] [default to 1]
1238
+ **filter_type** | **String**| Filter type | [optional] [default to PREFIX]
1239
+ **name** | **String**| Name | [optional]
1240
+ **sort_by** | **String**| Sort by | [optional]
1241
+ **sort_order** | **String**| Sort order | [optional] [default to a]
1242
+ {: class="table table-striped"}
1243
+
1244
+
1245
+ ### Return type
1246
+
1247
+ [**CampaignRuleEntityListing**](CampaignRuleEntityListing.html)
1248
+
1249
+ ### HTTP request headers
1250
+
1251
+ - **Content-Type**: application/json
1252
+ - **Accept**: application/json
1253
+
1254
+
1255
+
1256
+ <a name="get_campaignrules_campaignrule_id"></a>
1257
+
1258
+ ## -[**CampaignRule**](CampaignRule.html) get_campaignrules_campaignrule_id(campaign_rule_id)
1259
+
1260
+ Get Campaign Rule
1261
+
1262
+
1263
+
1264
+ ### Example
1265
+ ~~~ruby
1266
+ # load the gem
1267
+ require 'purecloud'
1268
+ # setup authorization
1269
+ @secret = ENV['PURECLOUD_SECRET']
1270
+ @id = ENV['PURECLOUD_CLIENT_ID']
1271
+ environment = "mypurecloud.com"
1272
+
1273
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
1274
+
1275
+ PureCloud.configure do |config|
1276
+ config.access_token = @authToken
1277
+ end
1278
+
1279
+ api_instance = PureCloud::OutboundApi.new
1280
+
1281
+ campaign_rule_id = "campaign_rule_id_example" # String | Campaign Rule ID
1282
+
1283
+
1284
+ begin
1285
+ #Get Campaign Rule
1286
+ result = api_instance.get_campaignrules_campaignrule_id(campaign_rule_id)
1287
+ p result
1288
+ rescue PureCloud::ApiError => e
1289
+ puts "Exception when calling OutboundApi->get_campaignrules_campaignrule_id: #{e}"
1290
+ end
1291
+ ~~~
1292
+
1293
+ ### Parameters
1294
+
1295
+ Name | Type | Description | Notes
1296
+ ------------- | ------------- | ------------- | -------------
1297
+ **campaign_rule_id** | **String**| Campaign Rule ID |
1298
+ {: class="table table-striped"}
1299
+
1300
+
1301
+ ### Return type
1302
+
1303
+ [**CampaignRule**](CampaignRule.html)
1304
+
1305
+ ### HTTP request headers
1306
+
1307
+ - **Content-Type**: application/json
1308
+ - **Accept**: application/json
1309
+
1310
+
1311
+
1128
1312
  <a name="get_campaigns"></a>
1129
1313
 
1130
1314
  ## -[**CampaignEntityListing**](CampaignEntityListing.html) get_campaigns(opts)
@@ -2783,6 +2967,62 @@ Name | Type | Description | Notes
2783
2967
 
2784
2968
 
2785
2969
 
2970
+ <a name="post_campaignrules"></a>
2971
+
2972
+ ## -[**CampaignRule**](CampaignRule.html) post_campaignrules(body)
2973
+
2974
+ Create Campaign Rule
2975
+
2976
+
2977
+
2978
+ ### Example
2979
+ ~~~ruby
2980
+ # load the gem
2981
+ require 'purecloud'
2982
+ # setup authorization
2983
+ @secret = ENV['PURECLOUD_SECRET']
2984
+ @id = ENV['PURECLOUD_CLIENT_ID']
2985
+ environment = "mypurecloud.com"
2986
+
2987
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
2988
+
2989
+ PureCloud.configure do |config|
2990
+ config.access_token = @authToken
2991
+ end
2992
+
2993
+ api_instance = PureCloud::OutboundApi.new
2994
+
2995
+ body = PureCloud::CampaignRule.new # CampaignRule | CampaignRule
2996
+
2997
+
2998
+ begin
2999
+ #Create Campaign Rule
3000
+ result = api_instance.post_campaignrules(body)
3001
+ p result
3002
+ rescue PureCloud::ApiError => e
3003
+ puts "Exception when calling OutboundApi->post_campaignrules: #{e}"
3004
+ end
3005
+ ~~~
3006
+
3007
+ ### Parameters
3008
+
3009
+ Name | Type | Description | Notes
3010
+ ------------- | ------------- | ------------- | -------------
3011
+ **body** | [**CampaignRule**](CampaignRule.html)| CampaignRule |
3012
+ {: class="table table-striped"}
3013
+
3014
+
3015
+ ### Return type
3016
+
3017
+ [**CampaignRule**](CampaignRule.html)
3018
+
3019
+ ### HTTP request headers
3020
+
3021
+ - **Content-Type**: application/json
3022
+ - **Accept**: application/json
3023
+
3024
+
3025
+
2786
3026
  <a name="post_campaigns"></a>
2787
3027
 
2788
3028
  ## -[**Campaign**](Campaign.html) post_campaigns(body)
@@ -3645,6 +3885,65 @@ Name | Type | Description | Notes
3645
3885
 
3646
3886
 
3647
3887
 
3888
+ <a name="put_campaignrules_campaignrule_id"></a>
3889
+
3890
+ ## -[**CampaignRule**](CampaignRule.html) put_campaignrules_campaignrule_id(campaign_rule_id, body)
3891
+
3892
+ Update Campaign Rule
3893
+
3894
+
3895
+
3896
+ ### Example
3897
+ ~~~ruby
3898
+ # load the gem
3899
+ require 'purecloud'
3900
+ # setup authorization
3901
+ @secret = ENV['PURECLOUD_SECRET']
3902
+ @id = ENV['PURECLOUD_CLIENT_ID']
3903
+ environment = "mypurecloud.com"
3904
+
3905
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
3906
+
3907
+ PureCloud.configure do |config|
3908
+ config.access_token = @authToken
3909
+ end
3910
+
3911
+ api_instance = PureCloud::OutboundApi.new
3912
+
3913
+ campaign_rule_id = "campaign_rule_id_example" # String | Campaign Rule ID
3914
+
3915
+ body = PureCloud::CampaignRule.new # CampaignRule | CampaignRule
3916
+
3917
+
3918
+ begin
3919
+ #Update Campaign Rule
3920
+ result = api_instance.put_campaignrules_campaignrule_id(campaign_rule_id, body)
3921
+ p result
3922
+ rescue PureCloud::ApiError => e
3923
+ puts "Exception when calling OutboundApi->put_campaignrules_campaignrule_id: #{e}"
3924
+ end
3925
+ ~~~
3926
+
3927
+ ### Parameters
3928
+
3929
+ Name | Type | Description | Notes
3930
+ ------------- | ------------- | ------------- | -------------
3931
+ **campaign_rule_id** | **String**| Campaign Rule ID |
3932
+ **body** | [**CampaignRule**](CampaignRule.html)| CampaignRule |
3933
+ {: class="table table-striped"}
3934
+
3935
+
3936
+ ### Return type
3937
+
3938
+ [**CampaignRule**](CampaignRule.html)
3939
+
3940
+ ### HTTP request headers
3941
+
3942
+ - **Content-Type**: application/json
3943
+ - **Accept**: application/json
3944
+
3945
+
3946
+
3648
3947
  <a name="put_campaigns_campaign_id"></a>
3649
3948
 
3650
3949
  ## -[**Campaign**](Campaign.html) put_campaigns_campaign_id(campaign_id, body)