Posts Tagged ‘Azure’

Try to delete from Azure cognitive search and receive a “not valid parameter”

July 8th, 2024

Say you try to delete from Azure search / Azure cognitive services / something-ai-copilot like so:


1
2
3
4
5
6
7
8
9
10
11
12
13
<em>### DELETE</em>
POST {{url}}/indexes/user-index-2021-03-25/docs/search?api-version=2023-07-01-preview
Content-Type: application/json
api-key: {{apiKey}}

{
    "value": &#91;
        {
            "@search.action": "delete",
            "rid": "RHZaaF9vbG05R1hH"
        }
    ]
}

Ang get a response like:


1
2
3
4
5
6
{
  "error": {
    "code": "",
    "message": "The request is invalid. Details: The parameter 'value' in the request payload is not a valid parameter for the operation 'search'."
  }
}

Then the problem is probably the “search” in the URL.

Try “index” instead:


1
POST {{url}}/indexes/user-index-2021-03-25/docs/index?api-version=2023-07-01-preview

http://unicow.cloudapp.net/

December 14th, 2010

I have created a very simple cloud application.

It can give back a GUID or a UTC date/time on proper ISO format.

If I have the time I will update it to be formattable and to give back consecutive numbers for a project.  The URL would then be something like http://unicow.cloudapp.net/DateTime/yyyy-mm-dd and http://unicow.cloudapp.net/Teller/MyProject  Future updates might include XML and Json too.

Since there is no HTML it should be easy to use from clients.

It is just a temporary Azure account so it will vanish by itself when time comes.