- 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
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
info:
|
|
name: Bulk Delete Media Items
|
|
type: http
|
|
seq: 1
|
|
http:
|
|
method: POST
|
|
url: '{{base_url}}/api/media-items/bulk-delete'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: "{\n \"media_item_ids\": [\n \"{{bookId1"
|
|
headers:
|
|
- key: Content-Type
|
|
value: application/json
|
|
|
|
docs: |-
|
|
## Bulk Delete Media Items
|
|
|
|
Deletes multiple media items in a single request.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/media-items/bulk-delete
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Request Body:**
|
|
- `media_item_ids` (array of strings): Array of media item UUIDs to delete
|
|
|
|
**Response:**
|
|
- `results` (array): Results for each deletion attempt
|
|
- `total` (number): Total number of media items processed
|
|
- `deleted` (number): Number of successfully deleted media items
|
|
- `failed` (number): Number of failed deletions
|
|
|
|
**Status Codes:**
|
|
- 200: Success (with partial results if some failed)
|
|
- 400: Invalid request data
|
|
- 401: Unauthorized
|
|
- 403: Forbidden
|
|
- 500: Internal server error
|
|
|
|
**Example:**
|
|
```json
|
|
{
|
|
"media_item_ids": [
|
|
"uuid-1",
|
|
"uuid-2",
|
|
"uuid-3"
|
|
]
|