Mark all notifications as read (deprecated)
PUT/notifications/ status/
v2
PUT
notifications-read-all-notifications-deprecated
Deprecated route. Please use /v2/notifications/actions/read-all instead.
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PUT \
-d '{}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/notifications/status
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.notificationsReadAllNotificationsDeprecated({
"data": {}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Notification\NotificationsReadAllNotificationsDeprecated\NotificationsReadAllNotificationsDeprecatedRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Notification\NotificationsReadAllNotificationsDeprecated\NotificationsReadAllNotificationsDeprecatedRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// NotificationsReadAllNotificationsDeprecatedRequestBody to learn how to construct a valid instance
$body = new NotificationsReadAllNotificationsDeprecatedRequestBody(/* TODO: ... */);
$request = (new NotificationsReadAllNotificationsDeprecatedRequest(
body: $body
));
$response = $client->notification()->notificationsReadAllNotificationsDeprecated($request);
var_dump($response->getBody();