You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trash: use "project" instead of "dataset" for the item-type vocabulary
Aligns the SDK with the rest of the public API. Diego flagged on the
docs PR that DELETE responses use `type: "project"` but the trash
list/restore payloads were using `type: "dataset"` — same item, two
names. Fixing on `"project"` to match the rest of the public surface
(`:project` URL params, DELETE responses, the `project:*` scope
namespace).
Backend ships the same change on the `soft-delete` branch; the docs
PR covers the user-visible REST API and SDK pages.
- `Project.restore()`: looks up `trash["sections"]["projects"]` and
passes `"project"` to `rfapi.restore_trash_item`. Docstring updated
to show `type: "project"` in the example response.
- `Workspace.restore_from_trash()`: docstring lists the valid item
types as `"project"`, `"version"`, `"workflow"` (was
`"dataset"`/.../...).
- `roboflow project restore` CLI: same lookup + restore call.
- `rfapi.restore_trash_item` docstring: matching update.
- Tests under `tests/cli/test_project_handler.py` and
`tests/cli/test_trash_handler.py` now exercise the project
vocabulary.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments