Skip to main content

Update the notification settings override of a message type

PATCH/v2/notification-settings/overrides/message-types/{messageType}
API version
v2
Request method
PATCH
Operation ID
notifications-update-notification-settings-override-for-message-type

Request​

  • messageTypestringrequired

Responses​

No response content specified.

Usage examples​

$ curl \
--fail \
--location \
-X PATCH \
-d '{"email":{"active":true},"frontendNotification":{"active":true}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/notification-settings/overrides/message-types/string
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";

const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.notification.notificationsUpdateNotificationSettingsOverrideForMessageType({
"messageType": "string",
"data": {
"email": {
"active": true
},
"frontendNotification": {
"active": true
}
}
});

assertStatus(response, 204);

use \Mittwald\ApiClient\Generated\V2\Clients\Notification\NotificationsUpdateNotificationSettingsOverrideForMessageType\NotificationsUpdateNotificationSettingsOverrideForMessageTypeRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Notification\NotificationsUpdateNotificationSettingsOverrideForMessageType\NotificationsUpdateNotificationSettingsOverrideForMessageTypeRequestBody;

$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));

// TODO: Please consult the properties and constructor signature of
// NotificationsUpdateNotificationSettingsOverrideForMessageTypeRequestBody to learn how to construct a valid instance
$body = new NotificationsUpdateNotificationSettingsOverrideForMessageTypeRequestBody(/* TODO: ... */);

$request = (new NotificationsUpdateNotificationSettingsOverrideForMessageTypeRequest(
messageType: "string",
body: $body
));
$response = $client->notification()->notificationsUpdateNotificationSettingsOverrideForMessageType($request);

var_dump($response->getBody();

On this page