fastly-api 14.0.0

Fastly API client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
# DmRoutingConfigsApi

> [!NOTE]
> All URIs are relative to `https://api.fastly.com`

Method | HTTP request | Description
------ | ------------ | -----------
[**activate_dm_routing_config_draft**]DmRoutingConfigsApi.md#activate_dm_routing_config_draft | **POST** /domain-management/v1/routing-configs/{config_id}/activate | Activate the draft
[**create_dm_routing_config**]DmRoutingConfigsApi.md#create_dm_routing_config | **POST** /domain-management/v1/routing-configs | Create a routing config
[**create_dm_routing_config_path**]DmRoutingConfigsApi.md#create_dm_routing_config_path | **POST** /domain-management/v1/routing-configs/{config_id}/paths | Create a path
[**create_dm_routing_config_rule**]DmRoutingConfigsApi.md#create_dm_routing_config_rule | **POST** /domain-management/v1/routing-configs/{config_id}/paths/{path_id}/rules | Create a rule
[**deactivate_dm_routing_config**]DmRoutingConfigsApi.md#deactivate_dm_routing_config | **POST** /domain-management/v1/routing-configs/{config_id}/deactivate | Deactivate a routing config
[**delete_dm_routing_config**]DmRoutingConfigsApi.md#delete_dm_routing_config | **DELETE** /domain-management/v1/routing-configs/{config_id} | Delete a routing config
[**delete_dm_routing_config_inactive_versions**]DmRoutingConfigsApi.md#delete_dm_routing_config_inactive_versions | **DELETE** /domain-management/v1/routing-configs/{config_id}/versions/inactive | Delete inactive versions
[**delete_dm_routing_config_path**]DmRoutingConfigsApi.md#delete_dm_routing_config_path | **DELETE** /domain-management/v1/routing-configs/{config_id}/paths/{path_id} | Delete a path
[**delete_dm_routing_config_rule**]DmRoutingConfigsApi.md#delete_dm_routing_config_rule | **DELETE** /domain-management/v1/routing-configs/{config_id}/paths/{path_id}/rules/{rule_id} | Delete a rule
[**discard_dm_routing_config_draft**]DmRoutingConfigsApi.md#discard_dm_routing_config_draft | **DELETE** /domain-management/v1/routing-configs/{config_id}/draft | Discard the draft
[**get_dm_routing_config**]DmRoutingConfigsApi.md#get_dm_routing_config | **GET** /domain-management/v1/routing-configs/{config_id} | Get a routing config
[**get_dm_routing_config_draft_diff**]DmRoutingConfigsApi.md#get_dm_routing_config_draft_diff | **GET** /domain-management/v1/routing-configs/{config_id}/draft/diff | Get the draft diff
[**get_dm_routing_config_path**]DmRoutingConfigsApi.md#get_dm_routing_config_path | **GET** /domain-management/v1/routing-configs/{config_id}/paths/{path_id} | Get a path
[**get_dm_routing_config_rule**]DmRoutingConfigsApi.md#get_dm_routing_config_rule | **GET** /domain-management/v1/routing-configs/{config_id}/paths/{path_id}/rules/{rule_id} | Get a rule
[**list_dm_routing_config_paths**]DmRoutingConfigsApi.md#list_dm_routing_config_paths | **GET** /domain-management/v1/routing-configs/{config_id}/paths | List paths
[**list_dm_routing_config_rules**]DmRoutingConfigsApi.md#list_dm_routing_config_rules | **GET** /domain-management/v1/routing-configs/{config_id}/paths/{path_id}/rules | List rules
[**list_dm_routing_config_versions**]DmRoutingConfigsApi.md#list_dm_routing_config_versions | **GET** /domain-management/v1/routing-configs/{config_id}/versions | List versions
[**list_dm_routing_configs**]DmRoutingConfigsApi.md#list_dm_routing_configs | **GET** /domain-management/v1/routing-configs | List routing configs
[**reactivate_dm_routing_config_version**]DmRoutingConfigsApi.md#reactivate_dm_routing_config_version | **POST** /domain-management/v1/routing-configs/{config_id}/versions/{version_id}/activate | Reactivate a version
[**update_dm_routing_config_draft**]DmRoutingConfigsApi.md#update_dm_routing_config_draft | **PATCH** /domain-management/v1/routing-configs/{config_id}/draft | Update the draft
[**update_dm_routing_config_path**]DmRoutingConfigsApi.md#update_dm_routing_config_path | **PATCH** /domain-management/v1/routing-configs/{config_id}/paths/{path_id} | Update a path
[**update_dm_routing_config_rule**]DmRoutingConfigsApi.md#update_dm_routing_config_rule | **PATCH** /domain-management/v1/routing-configs/{config_id}/paths/{path_id}/rules/{rule_id} | Update a rule



## activate_dm_routing_config_draft

Activate the current draft version. The previously active version, if any, becomes inactive but is retained in version history.

```rust
let cfg = &Configuration::default();
let params = ActivateDmRoutingConfigDraftParams {
    // parameters
};
activate_dm_routing_config_draft(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

[**crate::models::RoutingConfigVersionResponse**](RoutingConfigVersionResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## create_dm_routing_config

Create a new routing config. An optional `initial_version` may be provided to seed the config with paths and rules in a single request, and may also be activated immediately.

```rust
let cfg = &Configuration::default();
let params = CreateDmRoutingConfigParams {
    // parameters
};
create_dm_routing_config(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**routing_config** | Option\<[**RoutingConfig**]RoutingConfig.md> |  |  |

### Return type

[**crate::models::RoutingConfigResponse**](RoutingConfigResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## create_dm_routing_config_path

Add a new path to the config's draft version. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = CreateDmRoutingConfigPathParams {
    // parameters
};
create_dm_routing_config_path(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_create** | Option\<[**PathCreate**]PathCreate.md> |  |  |

### Return type

[**crate::models::PathResponse**](PathResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## create_dm_routing_config_rule

Add a new rule to a path on the config's draft version. If no draft exists, one is created automatically by cloning the active version. A rule with an empty `conditions` array is a default (catch-all) rule and there can be at most one default rule per path.

```rust
let cfg = &Configuration::default();
let params = CreateDmRoutingConfigRuleParams {
    // parameters
};
create_dm_routing_config_rule(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**rule_create** | Option\<[**RuleCreate**]RuleCreate.md> |  |  |

### Return type

[**crate::models::RuleResponse**](RuleResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## deactivate_dm_routing_config

Clear the active version designation. This is a bookkeeping operation only — it does not stop edge traffic. Minerva continues serving the last-activated version until the domain association is removed in Spotless. Only removing the routing config from the domain (via Spotless) triggers Neptune to drop the reference, which causes Minerva to stop fetching and eventually clean up the cached config. Idempotent: returns 200 even if already deactivated.

```rust
let cfg = &Configuration::default();
let params = DeactivateDmRoutingConfigParams {
    // parameters
};
deactivate_dm_routing_config(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

[**crate::models::RoutingConfigResponse**](RoutingConfigResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## delete_dm_routing_config

Delete a routing config. By default, configs that have an active version cannot be deleted. Pass `force=true` to bypass the active-version check — this is destructive and will immediately stop traffic routing for any paths the config serves. The `force` parameter does **not** bypass the domain-association check; if domains are still associated, deletion is rejected with 409 regardless of `force`.

```rust
let cfg = &Configuration::default();
let params = DeleteDmRoutingConfigParams {
    // parameters
};
delete_dm_routing_config(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**force** | Option\<**bool**> | When `true`, allows deleting a routing config that has an active version. This is destructive — traffic routing for any paths served by the config will stop immediately. |  |[default to false]

### Return type

 (empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## delete_dm_routing_config_inactive_versions

Delete all inactive versions for a routing config. The currently active version, if any, is retained.

```rust
let cfg = &Configuration::default();
let params = DeleteDmRoutingConfigInactiveVersionsParams {
    // parameters
};
delete_dm_routing_config_inactive_versions(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## delete_dm_routing_config_path

Delete a path from the config's draft version. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = DeleteDmRoutingConfigPathParams {
    // parameters
};
delete_dm_routing_config_path(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## delete_dm_routing_config_rule

Delete a rule from the config's draft version. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = DeleteDmRoutingConfigRuleParams {
    // parameters
};
delete_dm_routing_config_rule(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**rule_id** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## discard_dm_routing_config_draft

Delete the current draft version, reverting any unactivated changes.

```rust
let cfg = &Configuration::default();
let params = DiscardDmRoutingConfigDraftParams {
    // parameters
};
discard_dm_routing_config_draft(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## get_dm_routing_config

Retrieve a single routing config by its identifier.

```rust
let cfg = &Configuration::default();
let params = GetDmRoutingConfigParams {
    // parameters
};
get_dm_routing_config(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

[**crate::models::RoutingConfigResponse**](RoutingConfigResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## get_dm_routing_config_draft_diff

Compare the current draft version against the active version and return the paths and rules that have been added, modified, or deleted.

```rust
let cfg = &Configuration::default();
let params = GetDmRoutingConfigDraftDiffParams {
    // parameters
};
get_dm_routing_config_draft_diff(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |

### Return type

[**crate::models::DraftDiff**](DraftDiff.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## get_dm_routing_config_path

Retrieve a single path by its stable identifier.

```rust
let cfg = &Configuration::default();
let params = GetDmRoutingConfigPathParams {
    // parameters
};
get_dm_routing_config_path(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |

### Return type

[**crate::models::PathResponse**](PathResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## get_dm_routing_config_rule

Retrieve a single rule by its stable identifier.

```rust
let cfg = &Configuration::default();
let params = GetDmRoutingConfigRuleParams {
    // parameters
};
get_dm_routing_config_rule(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**rule_id** | **String** |  | [required] |

### Return type

[**crate::models::RuleResponse**](RuleResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## list_dm_routing_config_paths

List paths for the config. Returns paths from the active version if one exists, otherwise from the draft.

```rust
let cfg = &Configuration::default();
let params = ListDmRoutingConfigPathsParams {
    // parameters
};
list_dm_routing_config_paths(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path** | Option\<**String**> | Filter results by path pattern. The match strategy is controlled by the `match` parameter. |  |
**_match** | Option\<**String**> | How to match the value of the `path` filter against existing path patterns. Has no effect unless `path` is also provided. |  |[default to exact]
**sort** | Option\<**String**> | The order in which to list the results. |  |[default to -created_at]
**cursor** | Option\<**String**> | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |  |
**limit** | Option\<**i32**> | Limit how many results are returned. |  |[default to 20]

### Return type

[**crate::models::PathsResponse**](PathsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## list_dm_routing_config_rules

List all rules for a path in evaluation order.

```rust
let cfg = &Configuration::default();
let params = ListDmRoutingConfigRulesParams {
    // parameters
};
list_dm_routing_config_rules(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**sort** | Option\<**String**> | The order in which to list the results. |  |[default to position]
**cursor** | Option\<**String**> | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |  |
**limit** | Option\<**i32**> | Limit how many results are returned. |  |[default to 20]

### Return type

[**crate::models::RulesResponse**](RulesResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## list_dm_routing_config_versions

List all versions for a routing config.

```rust
let cfg = &Configuration::default();
let params = ListDmRoutingConfigVersionsParams {
    // parameters
};
list_dm_routing_config_versions(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**sort** | Option\<**String**> | The order in which to list the results. |  |[default to -activated_at]
**cursor** | Option\<**String**> | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |  |
**limit** | Option\<**i32**> | Limit how many results are returned. |  |[default to 20]

### Return type

[**crate::models::VersionsResponse**](VersionsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## list_dm_routing_configs

List all routing configs for the authenticated customer.

```rust
let cfg = &Configuration::default();
let params = ListDmRoutingConfigsParams {
    // parameters
};
list_dm_routing_configs(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**state** | Option\<[**Vec&lt;String&gt;**]String.md> | Filter configs by lifecycle state. Accepts a comma-separated list of state values (e.g. `?state=active,active-with-draft`). Returns only configs whose current state matches one of the provided values. Returns 400 if any value is not a recognised state. |  |
**sort** | Option\<**String**> | The order in which to list the results. |  |[default to -created_at]
**cursor** | Option\<**String**> | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |  |
**limit** | Option\<**i32**> | Limit how many results are returned. |  |[default to 20]

### Return type

[**crate::models::RoutingConfigsResponse**](RoutingConfigsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## reactivate_dm_routing_config_version

Reactivate a previously-active version. The currently active version, if any, becomes inactive but is retained in version history.

```rust
let cfg = &Configuration::default();
let params = ReactivateDmRoutingConfigVersionParams {
    // parameters
};
reactivate_dm_routing_config_version(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**version_id** | **String** |  | [required] |

### Return type

[**crate::models::RoutingConfigVersionResponse**](RoutingConfigVersionResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## update_dm_routing_config_draft

Update metadata on the draft version, such as its comment. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = UpdateDmRoutingConfigDraftParams {
    // parameters
};
update_dm_routing_config_draft(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**draft_update** | Option\<[**DraftUpdate**]DraftUpdate.md> |  |  |

### Return type

[**crate::models::RoutingConfigVersionResponse**](RoutingConfigVersionResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## update_dm_routing_config_path

Update a path on the config's draft version. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = UpdateDmRoutingConfigPathParams {
    // parameters
};
update_dm_routing_config_path(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**path_update** | Option\<[**PathUpdate**]PathUpdate.md> |  |  |

### Return type

[**crate::models::PathResponse**](PathResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


## update_dm_routing_config_rule

Update a rule on the config's draft version. If no draft exists, one is created automatically by cloning the active version.

```rust
let cfg = &Configuration::default();
let params = UpdateDmRoutingConfigRuleParams {
    // parameters
};
update_dm_routing_config_rule(cfg, params)
```

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**config_id** | **String** |  | [required] |
**path_id** | **String** |  | [required] |
**rule_id** | **String** |  | [required] |
**rule_update** | Option\<[**RuleUpdate**]RuleUpdate.md> |  |  |

### Return type

[**crate::models::RuleResponse**](RuleResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)