wit icon indicating copy to clipboard operation
wit copied to clipboard

Unable to remove Built-In Entity from app through API

Open MushAsterion opened this issue 4 years ago • 2 comments

Do you want to request a feature, report a bug, or ask a question about wit? Bug with API endpoint /entities/:entity on method DELETE.

What is the current behavior? Each time I send a DELETE request do /entities/:entity API endpoint for a built-in entity it throws an error while the exact same request with a non-built-in entity returns a success. Here is the error that I have:

{
    "error": "You can't add keywords to free-text entities.",
    "code": "unsupported-lookups"
}

I even tried to remove the entity by removing all of its roles and it throws the exact same error response.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Add a built-in entity to the app such as "wit/notable_person"
  2. Send a DELETE request with relevant authorization to https://api.wit.ai/entities/wit$notable_person?v=20211229
  3. You should receive the same error as above.

What is the expected behavior? Named built-in entity should be removed from the app.

If applicable, what is the App ID where you are experiencing this issue? If you do not provide this, we cannot help. 455899615941706 (this is a test app).

MushAsterion avatar Dec 29 '21 10:12 MushAsterion

Hi @MushAsterion, thanks for reporting this issue. This seems to be a bug behavior and we will fix it soon. For now, you can use the UI button to delete it to get unblocked.

yuzh174 avatar Jan 04 '22 22:01 yuzh174

Hey @yuzh174, thank you for the heads up, I will certainly do!

MushAsterion avatar Jan 05 '22 09:01 MushAsterion

Closing due to no movement on the issue. Please re-open or file a new task should the issue be persisting.

Barbog avatar Apr 18 '23 09:04 Barbog