MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.23k stars 21.39k forks source link

API "Create an incident" got 404 #123213

Closed whw23 closed 2 months ago

whw23 commented 3 months ago

Using "Create an incident" in https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/custom-categories-rapid?tabs=curl#create-an-incident-object I always get 404. image

With curl --location --request PATCH 'https://%endpoint%/contentsafety/text/incidents/%text-incident-name%?api-version=2024-02-15-preview ' \ --header 'Ocp-Apim-Subscription-Key: %your-content-safety-key%' \ --header 'Content-Type: application/json' \ --data '{ "incidentName": "%text-incident-name%", "incidentDefinition": "string" }'

I replaced %endpoint% with my content safety resource(F0) endpoint in east us. (With this endpoint I successfully used for Create or modify a blocklist) I replaced %text-incident-name% with "incident1". I replaced %your-content-safety-key% with key of this resource.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

TPavanBalaji commented 3 months ago

@whw23 Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT commented 3 months ago

@whw23 Thank you for bringing this to our attention. I've delegated this to content author @eric-urban, who will review it and offer their insightful opinions.

Naveenommi-MSFT commented 3 months ago

@eric-urban Please review it and update as appropriate.

PatrickFarley commented 2 months ago

@Naveenommi-MSFT I can repro the issue. Please open a product issue for this. I'll also notify the product team myself

please-close