Benachrichtigungs-Handler
GET https://kumhofer.at/sopro/api/notification-handlers/
curl --request GET \
--url 'https://kumhofer.at/sopro/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kumhofer.at/sopro/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| page | Optional Ganzzahl | Die Seitennummer, von der Sie Ergebnisse wünschen. Standardmäßig 1. |
| results_per_page | Optional Ganzzahl | Wie viele Ergebnisse möchten Sie pro Seite anzeigen. Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standardmäßig 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-10-26 07:06:41",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://kumhofer.at/sopro/api/notification-handlers?page=1",
"last": "https://kumhofer.at/sopro/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://kumhofer.at/sopro/api/notification-handlers?page=1"
}
}
GET https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-10-26 07:06:41",
}
}
POST https://kumhofer.at/sopro/api/notification-handlers
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Erforderlich Zeichenkette | - |
| type | Erforderlich Zeichenkette | Erlaubte Werte: email |
| Optional Zeichenkette | Verfügbar wann: type = email E-Mail |
curl --request POST \
--url 'https://kumhofer.at/sopro/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
--url 'https://kumhofer.at/sopro/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{
"data": {
"id": 1
}
}
POST https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Optional Zeichenkette | - |
| type | Optional Zeichenkette | Erlaubte Werte: email |
| Optional Zeichenkette | Verfügbar wann: type = email E-Mail | |
| is_enabled | Optional Boolesch | - |
curl --request POST \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
{
"data": {
"id": 1
}
}
DELETE https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kumhofer.at/sopro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \