API · v1.4.0
Imports
5 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/imports
List the workspace's imports, newest first
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/imports
Upload an Uptime Kuma SQLite database or 1.23 JSON backup and queue its analysis
The file must start like a SQLite database or a JSON document; anything else is a 422 on file. A workspace whose previous import has not finished (or was analysed but neither run nor deleted) gets a 409 problem of type urn:problem:import-in-progress.
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus | Leírás |
|---|---|---|
filekötelező | string | Maximum file size: 262144 kilobytes. |
history | boolean | |
paused | boolean |
Válaszok
202404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/imports/{import}
Show an import with its report
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
importkötelező | path | string | The import ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
DELETE /workspaces/{workspace}/imports/{import}
Delete an import and its stored file
An import that is being analysed or run cannot be deleted (409 problem of type urn:problem:import-in-progress). The entities a completed run created stay.
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
importkötelező | path | string | The import ID |
Válaszok
204No content404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/imports/{import}/run
Run an analysed import
Only an import in status analyzed can be run; any other status is a 409 problem of type urn:problem:import-not-analyzed.
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
importkötelező | path | string | The import ID |
Válaszok
202404Not found403Authorization error401Unauthenticated