@@ -53,7 +53,7 @@ Copy the cURL command below to a text editor and make the following changes:
5353
5454
5555``` 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' \
5757--header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
5858--header ' Content-Type: application/json' \
5959--data-raw ' {
@@ -245,7 +245,7 @@ Copy the cURL command below to a text editor and make the following changes:
2452451 . 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.
246246
247247``` 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' \
249249--header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
250250--header ' Content-Type: application/json' \
251251--data-raw ' "blocklistItems": [{
@@ -487,7 +487,7 @@ Copy the cURL command below to a text editor and make the following changes:
4874871 . Optionally change the value of the `" text" ` field to whatever text you want to analyze.
488488
489489```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&' \
491491-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
492492-- header ' Content-Type: application/json' \
493493-- data- raw ' {
@@ -727,7 +727,7 @@ Copy the cURL command below to a text editor and make the following changes:
7277271 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
728728
729729```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' \
731731-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
732732-- header ' Content-Type: application/json'
733733```
@@ -900,7 +900,7 @@ Copy the cURL command below to a text editor and make the following changes:
900900
901901
902902```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' \
904904-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
905905-- header ' Content-Type: application/json'
906906```
@@ -1048,7 +1048,7 @@ Copy the cURL command below to a text editor and make the following changes:
104810481 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
10491049
10501050```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' \
10521052-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
10531053-- data ' '
10541054```
@@ -1199,7 +1199,7 @@ Copy the cURL command below to a text editor and make the following changes:
11991199
12001200
12011201```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' \
12031203-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
12041204-- data ' '
12051205```
@@ -1387,7 +1387,7 @@ Copy the cURL command below to a text editor and make the following changes:
13871387
13881388
13891389```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' \
13911391-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
13921392-- header ' Content-Type: application/json'
13931393-- data- raw ' "blocklistItemIds":[
@@ -1573,7 +1573,7 @@ Copy the cURL command below to a text editor and make the following changes:
157315731 . Replace `< your_list_name> ` (in the request URL ) with the name you used in the list creation step.
15741574
15751575```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' \
15771577-- header ' Ocp-Apim-Subscription-Key: <enter_your_key_here>' \
15781578-- header ' Content-Type: application/json' \
15791579```
0 commit comments