Download OpenAPI specification:
The app service is used to configure and manage users' mobile devices.
Returns all devices for queried owner
| owner_id required | integer requested owner by using his userID |
| organization_id | integer requesting organization, not required if user accesses his own resources |
[- {
- "active": true,
- "id": 0,
- "isMainDevice": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}
]Create a device configuration for specific user, used by our iOS / Android app
device configuration payload
| active required | boolean Whether this device will be used for notifications or not. |
| name required | string User-defined name for this device (e.g. Apple iPhone XS). |
| os required | string The device's OS (e.g. iOS 12). Should at least include the "android" or "ios" keyword to allow a distinction between our push services. |
| ownerID required | integer <int64> ID of the user this device is created for. |
| pushToken required | string The device's pushtoken (FCM / Apple Push) used by the previously defined OS. |
| pushTokenDevelopment required | boolean Defines if the given push-token should be used in a development-environment or not (APNS only). |
{- "active": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}{- "active": true,
- "id": 0,
- "isMainDevice": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}Gets a device configuration
| deviceID required | integer ID of a device configuration |
| organization_id | integer requesting organization, not required if user accesses his own resources |
{- "active": true,
- "id": 0,
- "isMainDevice": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}Updates an existing device configuration
| deviceID required | integer ID of an existing device configuration |
| organization_id | integer requesting organization, not required if user accesses his own resources |
device configuration payload
| active required | boolean Whether this device will be used for notifications or not. |
| name required | string User-defined name for this device (e.g. Apple iPhone XS). |
| os required | string The device's OS (e.g. iOS 12). Should at least include the "android" or "ios" keyword to allow a distinction between our push services. |
| ownerID required | integer <int64> ID of the user this device is created for. |
| pushToken required | string The device's pushtoken (FCM / Apple Push) used by the previously defined OS. |
| pushTokenDevelopment required | boolean Defines if the given push-token should be used in a development-environment or not (APNS only). |
{- "active": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}{- "active": true,
- "id": 0,
- "isMainDevice": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}Delete an existing device configuration
| deviceID required | integer ID of an existing device configuration |
| organization_id | integer requesting organization, not required if user accesses his own resources |
{- "status": "deleted"
}Check if any device is active for the passed owner id in the passed organization id and get the permissions of the user and the organization
| user_id required | integer id of the user |
| organization_id required | integer id of the organization |
{- "activeCount": 0,
- "anyActive": true,
- "organizationPermission": true,
- "userPermission": true
}{- "active": true,
- "id": 0,
- "isMainDevice": true,
- "name": "string",
- "os": "string",
- "ownerID": 0,
- "pushToken": "string",
- "pushTokenDevelopment": true
}Returns whether the given organization has disabled this way of alarming or not
| organization_id required | integer requesting organization |
[- {
- "isDisabled": true
}
]Sets whether the given organization has this way of alarming disabled or not
| organization_id required | integer requesting organization |
isDisabled payload
| isDisabled | boolean |
{- "isDisabled": true
}Sets the user feedback for a specific alarm
the users feedback
| alarmID required | integer <int64> AlarmID of the alarm that should be answered |
object (AnswerData) AnswerData is used to transmit additional data about a user's alarm answer | |
| deviceID required | integer <int64> DeviceID which sends the feedback to show it on the alarm overview |
| response | boolean Response should be |
{- "alarmID": 0,
- "answerData": {
- "distance": 0,
- "duration": 0
}, - "deviceID": 0,
- "response": true
}Sends a comment for a specific alarm
the users comment
| alarmID required | integer <int64> AlarmID of the alarm that should be answered |
| comment required | string Comment is the comment text left by the user |
| deviceID required | integer <int64> DeviceID which sends the feedback to show it on the alarm overview |
{- "alarmID": 0,
- "comment": "string",
- "deviceID": 0
}Sets a push's alarm answer
| token required | string confirmToken associated with this push |
| answer required | string answer given by the user (yes / no) |
additional data about user response
| distance | integer <int64> Distance to organization base in kilometers |
| duration | integer <int64> Duration in traffic to organization in minutes |
{- "distance": 0,
- "duration": 0
}Returns true if there is an active permission for the passed organization or specifically for the passed user in an organization.
| organization_id required | integer ID of an organization |
| user_id | integer optional ID of a user in this organization |
restriction configuration with user and organization id
| organizationID | integer <int64> |
| userID | integer <int64> |
{- "organizationID": 0,
- "userID": 0
}