Files
bookhoard/bruno/ebooks/Update Ebook.bru
T

50 lines
904 B
Plaintext

meta {
name: Update Ebook
type: http
seq: 4
}
put {
url: http://localhost:8765/api/ebooks/123e4567-e89b-12d3-a456-426614174000
body: json
auth: inherit
}
body:json {
{
"title": "Updated Book Title",
"author": "Updated Author",
"description": "Updated description"
}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Update Ebook
Updates an existing ebook's metadata.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Ebook UUID
**Request Body:** (all fields optional)
- `title` (string): Book title
- `author` (string): Book author
- `isbn` (string): ISBN number
- `description` (string): Book description
- `cover_image_path` (string): Path to cover image
**Response:** Updated ebook object
**Error Responses:**
- 401: Invalid authentication
- 404: Ebook not found
- 400: Invalid request data
}