Files
bookhoard/bruno-yaml/sidecar/Update System Configuration.yml
T

43 lines
1.1 KiB
YAML

info:
name: Update System Configuration
type: http
seq: 4
http:
method: PUT
url: '{{base_url}}/api/system/config'
auth: inherit
body:
type: json
jsonBody: "{\n \"base_url\": \"https://bookhoard.example.com\",\n \"opds_base_url\"\
: \"https://bookhoard.example.com/opds\",\n \"api_base_url\": \"https://bookhoard.example.com/api\""
headers:
- key: Authorization
value: Bearer {{admin_token
docs: |-
## Update System Configuration
Updates system-wide configuration settings for the Bookhoard instance.
**Method:** PUT
**Endpoint:** /api/system/config
**Authentication:** Bearer token (admin only)
**Request Body:**
- `base_url` (string): Base URL for the instance
- `opds_base_url` (string): OPDS endpoint base URL
- `api_base_url` (string): API endpoint base URL
**Response:**
- `status` (string): Update status
- `config` (object): Updated configuration
**Status Codes:**
- 200: Success
- 400: Invalid configuration
- 401: Unauthorized
- 403: Forbidden (admin only)
- 500: Internal server error