Screen API - Even though the 'listId' query param is empty or excluded from the request, response uses one of my created lists
Screen API - Even though the 'listId' query param is empty or excluded from the request, response uses one of my created lists
Here is the curl:
curl -X POST \ 'https://westus.api.cognitive.microsoft.com/contentmoderator/moderate/v1.0/ProcessText/Screen?autocorrect=false&PII=false&classify=True' \ -H 'Accept: /' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Length: 18' \ -H 'Content-Type: text/plain' \ -H 'Host: westus.api.cognitive.microsoft.com' \ -H 'Postman-Token: a477b3d6-f0e9-4964-bf90-b6b861154d7c,eb527ed8-0d1a-47c1-9c80-dba784dbf0b9' \ -H 'User-Agent: PostmanRuntime/7.19.0' \ -H 'cache-control: no-cache' \ -d '1 800 1801 stupid '
Here is the response:
{ "OriginalText": "1 800 1801 stupid ", "NormalizedText": "1 800 1801 stupid ", "Misrepresentation": null, "Classification": { "ReviewRecommended": true, "Category1": { "Score": 0.0071512144058942795 }, "Category2": { "Score": 0.21704921126365662 }, "Category3": { "Score": 0.98799997568130493 } }, "Language": "eng", "Terms": [ { "Index": 0, "OriginalIndex": 0, "ListId": 661, "Term": "1 800" }, { "Index": 11, "OriginalIndex": 11, "ListId": 661, "Term": "stupid" } ], "Status": { "Code": 3000, "Description": "OK", "Exception": null }, "TrackingId": "WUibizadc460e07-1efe-4c0c-a07f-623eac4b6304ContentModerator.F0ff219c61-6c70-4570-a62d-a3846b522678" }
I don't understand how it takes ListId: 661 when the request does not mention/suggest to use any pre-created list id.
