# Update Device

Update a device's information.

**Endpoint**: `PUT /api/devices/:id`
**Auth**: Required
**Content-Type**: `application/json`

## Path Parameters

| Parameter | Type | Required | Description |
|-----------|------|-----------|-------------|
| id | string (UUID) | Yes | Device UUID |

## Request Body

| Field | Type | Required | Description |
|--------|------|-----------|-------------|
| name | string | No | Device display name |
| device_type | string | No | Device type (kobo, koreader, etc.) |

### Example Request

```json
{
  "name": "My Kobo Clara",
  "device_type": "kobo"
}
```

## Response (200 OK)

```json
{
  "id": "uuid",
  "name": "My Kobo Clara",
  "device_type": "kobo",
  "user_id": "user-uuid",
  "status": "active",
  "created_at": "2026-02-08T10:00:00Z",
  "updated_at": "2026-02-08T11:00:00Z"
}
```

## Error Responses

| Code | Description |
|------|-------------|
| 400 | Invalid request data |
| 401 | Invalid or expired token |
| 403 | Device does not belong to user |
| 404 | Device not found |
