60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
meta {
|
|
name: Delete Reading Progress
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/media-items/{{media_item_id}}/progress
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
tests {
|
|
test_delete_reading_progress_success(status, headers, body) {
|
|
if (status !== 200 && status !== 204) {
|
|
throw new Error("Expected status 200 or 204, got " + status);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
|
|
vars:pre-request {
|
|
mediaItemId: "8821b703-1234-5678-9123-446655440001"
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
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.
|
|
}
|