This commit is contained in:
seb
2026-10-30 16:56:27 +01:00
parent 2df7c59feb
commit 61529023b0
7 changed files with 91 additions and 46 deletions

View File

@@ -25,7 +25,8 @@ Printer agent list
"clientstate": "…",
"agentversion": "…",
"lastseenAt": "…",
"updatedAt": "…"
"updatedAt": "…",
"sort": 1
}
]
}

View File

@@ -13,6 +13,7 @@ The pairingpin is randomly generated server-side and returned in the response.
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `name` | yes | string | |
| `sort` | no | integer | |
```json
{
@@ -38,7 +39,8 @@ Created printer agent with generated pairingpin
"clientstate": "…",
"agentversion": "…",
"lastseenAt": "…",
"updatedAt": "…"
"updatedAt": "…",
"sort": 1
}
}
```

View File

@@ -2,7 +2,9 @@
Protected. Requires a valid session cookie (`credentials: 'include'`).
Rename printer agent
Update printer agent
Updates name and/or display order (sort) of a printer agent.
## Path parameters
@@ -14,11 +16,13 @@ Rename printer agent
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `name` | yes | string | |
| `name` | no | string | |
| `sort` | no | integer | |
```json
{
"name": "…"
"name": "…",
"sort": 1
}
```
@@ -40,7 +44,8 @@ Updated printer agent
"clientstate": "…",
"agentversion": "…",
"lastseenAt": "…",
"updatedAt": "…"
"updatedAt": "…",
"sort": 1
}
}
```