Files
bookhoard/docs/developer/api/book-matching/update_device_file_alias.md
T
john-okeefe b44e4e4709 docs: remove Phase X placeholders from API documentation
Clean up API documentation files by removing Phase X references:

Remove 'API Explorer will be inserted here in Phase X' placeholders from:
- 70+ API endpoint documentation files
- Authentication endpoints (login, logout, register, refresh)
- User endpoints (profile, settings, password)
- Device endpoints (registration, sync, shelves)
- Library endpoints (CRUD, folders, visibility)
- Media endpoints (items, progress, highlights, notes)
- Admin endpoints (users, analytics)
- Sync endpoints (Kobo, KOReader)
- OPDS endpoints
- Scanner endpoints
- Queue endpoints

These placeholders were from planning documents and have no meaning
to API consumers. The documentation is now clean and ready for use.
2026-02-13 21:50:44 -05:00

1.1 KiB

Update Device File Alias

Update an existing device file alias.

Endpoint: PUT /api/devices/:id/file-aliases/:aliasId Auth: Required Content-Type: application/json

Path Parameters

Parameter Type Required Description
id string (UUID) Yes Device UUID
aliasId string (UUID) Yes File alias UUID

Request Body

Field Type Required Description
file_name string No New file name
file_hash string No New file hash

Example Request

{
  "file_name": "updated-book.epub",
  "file_hash": "newhash123..."
}

Response (200 OK)

{
  "id": "uuid",
  "device_id": "device-uuid",
  "media_item_id": "book-uuid",
  "file_name": "updated-book.epub",
  "file_hash": "newhash123...",
  "updated_at": "2026-02-08T11:00:00Z"
}

Error Responses

Code Description
400 Invalid request data
401 Invalid or expired token
404 Device or file alias not found