Skip to content

Commit bd139ea

Browse files
committed
fix api version
1 parent e590e5e commit bd139ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/ai-services/openai/how-to/use-blocklists.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Copy the cURL command below to a text editor and make the following changes:
4949
1. Optionally replace the value of the "description" field with a custom description.
5050

5151
```bash
52-
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}?api-version=2024-03-01-preview' \
52+
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}?api-version=2024-04-01-preview' \
5353
--header 'Authorization: Bearer {token}' \
5454
--header 'Content-Type: application/json' \
5555
--data-raw '{
@@ -72,10 +72,11 @@ To apply a **completion** blocklist to a content filter, use the following cURL
7272
1. Replace {accountName} with your resource name.
7373
1. Replace {raiPolicyName} with the name of your Content Filter
7474
1. Replace {token} with the token you got from the "Get your token" step above.
75-
1. Replace "raiBlocklistName" in the body with a custom name for your list. Allowed characters: `0-9, A-Z, a-z, - . _ ~`.
75+
1. Optionally change the `"completionBlocklists"` title to `"promptBlocklists"` if you want the blocklist to apply to user prompts instead of AI model completions.
76+
1. Replace `"raiBlocklistName"` in the body with a custom name for your list. Allowed characters: `0-9, A-Z, a-z, - . _ ~`.
7677

7778
```bash
78-
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}?api-version=2024-03-01-preview' \
79+
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}?api-version=2024-04-01-preview' \
7980
--header 'Authorization: Bearer {token}' \
8081
--header 'Content-Type: application/json' \
8182
--data-raw '{
@@ -105,7 +106,7 @@ Copy the cURL command below to a text editor and make the following changes:
105106
1. Replace the value of the `"blocking pattern"` field with the item you'd like to add to your blocklist. The maximum length of a blockItem is 1000 characters. Also specify whether the pattern is regex or exact match.
106107

107108
```bash
108-
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}?api-version=2024-03-01-preview' \
109+
curl --location --request PUT 'https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}?api-version=2024-04-01-preview' \
109110
--header 'Authorization: Bearer {token}' \
110111
--header 'Content-Type: application/json' \
111112
--data-raw '{

0 commit comments

Comments
 (0)