Download OpenAPI specification:Download
Documentation for the PushBits server API.
Creates an alert that is send to the channel as a notification. This endpoint is compatible with alertmanager webhooks.
| token required | string Channels token, can also be provieded in the header |
alertmanager webhook call
Array of objects (github_com_pushbits_server_internal_model.AlertmanagerAlert) | |
object | |
object | |
| externalURL | string |
| groupKey | string |
object | |
| receiver | string |
| version | string |
{- "alerts": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "endsAt": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "startsAt": "string",
- "status": "string"
}
], - "commonAnnotations": {
- "property1": "string",
- "property2": "string"
}, - "commonLabels": {
- "property1": "string",
- "property2": "string"
}, - "externalURL": "string",
- "groupKey": "string",
- "groupLabels": {
- "property1": "string",
- "property2": "string"
}, - "receiver": "string",
- "version": "string"
}[- {
- "appid": 0,
- "date": "string",
- "extras": { },
- "id": "string",
- "id_url_encoded": "string",
- "message": "string",
- "priority": 0,
- "title": "string"
}
]Update an application
| id required | integer ID of the application |
| name | string New name for the application |
| refresh_token | boolean Generate new refresh token for the application |
| strict_compatibility | boolean Whether to use strict compataibility mode |
Creates a new notification for the given channel
| message required | string The message to send |
| title | string The title to send |
| priority | integer The notifications priority |
| token required | string Channels token, can also be provieded in the header |
{- "appid": 0,
- "date": "string",
- "extras": { },
- "id": "string",
- "id_url_encoded": "string",
- "message": "string",
- "priority": 0,
- "title": "string"
}Creates a new user
| name required | string Name of the user |
| is_admin | boolean Whether to set the user as admin or not |
| matrix_id required | string Matrix ID of the user in the format @user:domain.tld |
| password required | string The users password |
{- "id": 0,
- "is_admin": true,
- "matrix_id": "string",
- "name": "string"
}Update user information
| id required | integer The users id |
| name required | string Name of the user |
| is_admin | boolean Whether to set the user as admin or not |
| matrix_id required | string Matrix ID of the user in the format @user:domain.tld |
| password required | string The users password |