I want to fill the vector memory of my project in Azure AI Foundry via a CURL command. I use the way described in the documentation
Uploading the file, which apparently has to be done before adding the file to the vector store, works fine. But adding the same file to the vector store does not work - the command, the variables you see below are unchanged and work for the CURL command that first uploads the file.
This is the command:
curl --request POST \ --url "$AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/vector_stores/vs_v383i2msmd8939d/files?api-version=2025-05-01" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d "{"file_id": "$FILE_ID"}"
The error message I get is:
"error": {
"message": "No vector store found with id 'vs_v383i2msmd8939d'.",
"type": "invalid_request_error",
"param": null,
"code": null
}
The vector store is definitely available and I could also upload this file manually, but I would like to do this automatically via a CI/CD pipeline, where this CURL command is then executed.
status:completed