Files
bookhoard/bruno-yaml/library/Update Library.yml
T

31 lines
662 B
YAML

info:
name: Update Library
type: http
seq: 2
http:
method: PUT
url: '{{base_url}}/api/libraries/{{library_id}}'
auth: inherit
body:
type: json
json:
name: Updated Library Name
description: Updated library description
headers:
- key: Content-Type
value: application/json
runtime:
scripts:
- type: tests
code: "test_update_library_success(status, headers, body) {\n if (status !==\
\ 200) {\n throw new Error(\"Expected status 200, got \" + status);"
docs: |-
## Update Library
Updates an existing library's information.
**Method:** PUT
**Endpoint:** /api/libraries/{id