Skip to content

Add API endpoint to delete ML Class

Named DestroyMLClass:

  • exposed as DELETE /api/v1/corpus/{corpus_id}/classes/{mlclass_id}
  • check that no classification exist for that ML Class
    • if there are any, throw a 400 with an explicit error message You cannot delete this ML Class, as it's still used by some classifications on this corpus

See https://gitlab.com/arkindex/requests/-/issues/372