info: name: Create Media Item type: http seq: 2 http: method: POST url: "{{base_url}}/api/media-items" headers: - name: "" value: application/json body: type: json data: "" auth: inherit runtime: scripts: - type: tests code: |- test_create_media_item_success(status, headers, body) { if (status !== 201) { throw new Error("Expected status 201, got " + status); settings: encodeUrl: true timeout: 0 followRedirects: true maxRedirects: 5 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