ComfyUI/app/assets/api
Cursor Agent d7e43f42d6
Add asset preview management endpoints (PUT/DELETE /api/assets/{id}/preview)
- PUT /api/assets/{id}/preview: sets the preview asset for an existing asset,
  returns the full updated Asset object. Returns 404 if asset ID doesn't exist.
- DELETE /api/assets/{id}/preview: clears the preview asset link, returns 204.
  Returns 404 if asset ID doesn't exist.

Added OpenAPI spec entries under the assets tag with no x-runtime restriction.
Implemented handlers using the existing set_asset_preview service function.
Added integration tests covering happy paths and 404 cases.

Co-authored-by: Matt Miller <MillerMedia@users.noreply.github.com>
2026-05-06 23:56:26 +00:00
..
routes.py Add asset preview management endpoints (PUT/DELETE /api/assets/{id}/preview) 2026-05-06 23:56:26 +00:00
schemas_in.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
schemas_out.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
upload.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00