I am trying to delete a document via CURL, but am getting a message: {"code":2, "message":"", "details":[]}
. When I check the corpus, the document still exisits.
PAYLOAD={\"customer-id\":\""$VECTARA_CLIENT_ID"\",\"corpus-id\":"$VECTARA_CORPUS_ID",\"document-id\":\""git/$REPO/$file"\"}
curl -XPOST "https://api.vectara.io/v1/delete-doc" -d $PAYLOAD \
-H "Content-type: application/json" \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "customer-id: $VECTARA_CLIENT_ID"
What is going wrong here?