Files
bookhoard/bruno/media-items/Create 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

35 lines
861 B
YAML

info:
name: Create Media Item
type: http
seq: 1
http:
method: POST
url: '{{base_url}}/api/media-items'
auth: inherit
body:
type: json
jsonBody: '"library_id": "{{library_id'
headers:
- key: Content-Type
value: application/json
runtime:
scripts:
- type: tests
code: "test_create_media_item_success(status, headers, body) {\n if (status\
\ !== 201) {\n throw new Error(\"Expected status 201, got \" + status);"
docs: |-
## Create Media Item
Creates a new media item in a library with full metadata.
**Method:** POST
**Endpoint:** /api/media-items
**Authentication:** Required (Bearer token, admin only)
**Prerequisites**
- Library must have at least one folder configured before media items can be added
- Use `POST /api/libraries/{library_id