Files
bookhoard/bruno-yaml/progress/Delete Reading Progress.yml
T

43 lines
1.1 KiB
YAML

info:
name: Delete Reading Progress
type: http
seq: 1
http:
method: DELETE
url: '{{base_url}}/api/media-items/{{media_item_id}}/progress'
auth: inherit
headers:
- key: Content-Type
value: application/json
runtime:
scripts:
- type: tests
code: "test_delete_reading_progress_success(status, headers, body) {\n if (status\
\ !== 200 && status !== 204) {\n throw new Error(\"Expected status 200\
\ or 204, got \" + status);"
docs: |-
## Delete Reading Progress
Deletes reading progress for a media item. This is a legacy endpoint - consider using universal progress endpoints instead.
**Method:** DELETE
**Endpoint:** /api/media-items/:id/progress
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string, required): Media item UUID
**Response:** Success message or empty
**Status Codes:**
- 200: Success
- 204: Success (no content)
- 401: Unauthorized
- 404: Media item not found
- 500: Internal server error
**Note:** This is a legacy endpoint. Use `/api/progress/:id` endpoints for new implementations.