admin method
Future<DynamiteResponse<SettingsAdminResponseApplicationJson, void> >
admin({
- required int batchSetting,
- required String soundNotification,
- required String soundTalk,
- SettingsAdminApiVersion? apiVersion,
- bool? oCSAPIRequest,
Update default notification settings for new users.
This endpoint requires admin access.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
batchSettingHow often E-mails about missed notifications should be sent (hourly: 1; every three hours: 2; daily: 3; weekly: 4).soundNotificationEnable sound for notifications ('yes' or 'no').soundTalkEnable sound for Talk notifications ('yes' or 'no').apiVersionDefaults tov2.oCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Admin settings updated
See:
- adminRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<SettingsAdminResponseApplicationJson, void>> admin({
required int batchSetting,
required String soundNotification,
required String soundTalk,
SettingsAdminApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = adminRaw(
batchSetting: batchSetting,
soundNotification: soundNotification,
soundTalk: soundTalk,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}