meta { name: Bulk Delete Books type: http seq: 1 } post { url: {{base_url}}/api/books/bulk-delete body: json auth: inherit } headers { Content-Type: application/json } body:json { { "book_ids": [ "{{bookId1}}", "{{bookId2}}", "{{bookId3}}" ] } } script:post-response { function onResponse(res) { if (res.getStatus() === 200) { tests['Bulk delete successful'] = true; const body = res.getBody(); tests['Has results array'] = Array.isArray(body.results); tests['Has total count'] = body.total !== undefined; tests['Has success count'] = body.success !== undefined; tests['Has failed count'] = body.failed !== undefined; } else { tests['Bulk delete failed'] = false; } } onResponse(res); } settings { encodeUrl: true timeout: 0 } docs { ## Bulk Delete Books Deletes multiple books in a single request. **Method:** POST **Endpoint:** /api/books/bulk-delete **Authentication:** Required (Bearer token) **Request Body:** - `book_ids` (array of strings): Array of book UUIDs to delete **Response:** - `results` (array): Results for each deletion attempt - `total` (number): Total number of books processed - `success` (number): Number of successfully deleted books - `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 { "book_ids": [ "uuid-1", "uuid-2", "uuid-3" ] } ``` }