Files
bookhoard/bruno/media-items/Update Media Item.yml
T
john-okeefe f859b2714d refactor(bruno): reorganize file structure from bruno-yaml to flat bruno directory
- Move all files from bruno-yaml/* to bruno/*
- Maintains existing directory structure within categories
- Updates bruno/user/auth files with OAuth2 refresh token flow
- Updates bruno/user/profile files for user profile management
- Adds bruno/dashboard/ directory with dashboard API tests
- Preserves all existing test scenarios and OpenCollection YAML format
- No functional changes - file reorganization only
2026-02-17 20:22:21 -05:00

53 lines
1.2 KiB
YAML

info:
name: Update Media Item
type: http
seq: 2
http:
method: PUT
url: '{{base_url}}/api/media-items/{{media_item_id}}'
auth: inherit
body:
type: json
json:
title: Updated Media Item Title
author: Updated Author Name
isbn: 978-9876543210
description: Updated description
cover_image_path: /updated/path/to/cover.jpg
series: Updated Series Name
series_number: 2
tags:
- updated
- fiction
- adventure
asin: B09XYZ789
date_published: '2023-02-20'
publisher: Updated Publisher
contributors:
- Updated Contributor
language: en
edition: Updated Edition
page_count: 400
genre: Updated Genre
copyright_year: 2023
goodreads_id: '7890123'
openlibrary_id: OL789012M
google_books_id: GB789012
headers:
- key: Content-Type
value: application/json
runtime:
scripts:
- type: tests
code: "test_update_media_item_success(status, headers, body) {\n if (status\
\ !== 200) {\n throw new Error(\"Expected status 200, got \" + status);"
docs: |-
## Update Media Item
Updates an existing media item's metadata.
**Method:** PUT
**Endpoint:** /api/media-items/{id