@@ -53,7 +53,7 @@ Copy the cURL command below to a text editor and make the following changes:
53
53
54
54
55
55
``` shell
56
- curl --location --request PATCH ' <endpoint>/contentsafety/text/blocklists/<your_list_name>?api-version=2023-10 -01' \
56
+ curl --location --request PATCH ' <endpoint>/contentsafety/text/blocklists/<your_list_name>?api-version=2024-09 -01' \
57
57
--header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
58
58
--header ' Content-Type: application/json' \
59
59
--data-raw ' {
@@ -245,7 +245,7 @@ Copy the cURL command below to a text editor and make the following changes:
245
245
1 . Replace the value of the ` "text" ` field with the item you'd like to add to your blocklist. The maximum length of a blocklistItem is 128 characters.
246
246
247
247
``` shell
248
- curl --location --request POST ' <endpoint>/contentsafety/text/blocklists/<your_list_name>:addOrUpdateBlocklistItems?api-version=2023-10 -01' \
248
+ curl --location --request POST ' <endpoint>/contentsafety/text/blocklists/<your_list_name>:addOrUpdateBlocklistItems?api-version=2024-09 -01' \
249
249
--header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
250
250
--header ' Content-Type: application/json' \
251
251
--data-raw ' "blocklistItems": [{
@@ -487,7 +487,7 @@ Copy the cURL command below to a text editor and make the following changes:
487
487
1 . Optionally change the value of the `" text" ` field to whatever text you want to analyze.
488
488
489
489
```shell
490
- curl -- location -- request POST ' <endpoint>/contentsafety/text:analyze?api-version=2023-10 -01&' \
490
+ curl -- location -- request POST ' <endpoint>/contentsafety/text:analyze?api-version=2024-09 -01&' \
491
491
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
492
492
-- header ' Content-Type: application/json' \
493
493
-- data- raw ' {
@@ -727,7 +727,7 @@ Copy the cURL command below to a text editor and make the following changes:
727
727
1 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
728
728
729
729
```shell
730
- curl -- location -- request GET ' <endpoint>/contentsafety/text/blocklists/<your_list_name>/blocklistItems?api-version=2023-10 -01' \
730
+ curl -- location -- request GET ' <endpoint>/contentsafety/text/blocklists/<your_list_name>/blocklistItems?api-version=2024-09 -01' \
731
731
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
732
732
-- header ' Content-Type: application/json'
733
733
```
@@ -900,7 +900,7 @@ Copy the cURL command below to a text editor and make the following changes:
900
900
901
901
902
902
```shell
903
- curl -- location -- request GET ' <endpoint>/contentsafety/text/blocklists?api-version=2023-10 -01' \
903
+ curl -- location -- request GET ' <endpoint>/contentsafety/text/blocklists?api-version=2024-09 -01' \
904
904
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
905
905
-- header ' Content-Type: application/json'
906
906
```
@@ -1048,7 +1048,7 @@ Copy the cURL command below to a text editor and make the following changes:
1048
1048
1 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
1049
1049
1050
1050
```shell
1051
- cURL -- location ' <endpoint>contentsafety/text/blocklists/<your_list_name>?api-version=2023-10 -01' \
1051
+ cURL -- location ' <endpoint>contentsafety/text/blocklists/<your_list_name>?api-version=2024-09 -01' \
1052
1052
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
1053
1053
-- data ' '
1054
1054
```
@@ -1199,7 +1199,7 @@ Copy the cURL command below to a text editor and make the following changes:
1199
1199
1200
1200
1201
1201
```shell
1202
- cURL -- location ' <endpoint>contentsafety/text/blocklists/<your_list_name>/blocklistItems/<your_item_id>?api-version=2023-10 -01' \
1202
+ cURL -- location ' <endpoint>contentsafety/text/blocklists/<your_list_name>/blocklistItems/<your_item_id>?api-version=2024-09 -01' \
1203
1203
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
1204
1204
-- data ' '
1205
1205
```
@@ -1387,7 +1387,7 @@ Copy the cURL command below to a text editor and make the following changes:
1387
1387
1388
1388
1389
1389
```shell
1390
- curl -- location -- request DELETE ' <endpoint>/contentsafety/text/blocklists/<your_list_name>:removeBlocklistItems?api-version=2023-10 -01' \
1390
+ curl -- location -- request POST ' <endpoint>/contentsafety/text/blocklists/<your_list_name>:removeBlocklistItems?api-version=2024-09 -01' \
1391
1391
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
1392
1392
-- header ' Content-Type: application/json'
1393
1393
-- data- raw ' "blocklistItemIds":[
@@ -1573,7 +1573,7 @@ Copy the cURL command below to a text editor and make the following changes:
1573
1573
1 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
1574
1574
1575
1575
```shell
1576
- curl -- location -- request DELETE ' <endpoint>/contentsafety/text/blocklists/<your_list_name>?api-version=2023-10 -01' \
1576
+ curl -- location -- request DELETE ' <endpoint>/contentsafety/text/blocklists/<your_list_name>?api-version=2024-09 -01' \
1577
1577
-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
1578
1578
-- header ' Content-Type: application/json' \
1579
1579
```
0 commit comments