Update a Server's storage space notification threshold
PUT/servers/ {serverId}/ storage-space-notification-threshold/ 
v2
PUT
storagespace-replace-server-notification-threshold
Request
Responses
Usage examples
- cURL
 - JavaScript SDK
 - PHP SDK
 
$ curl \
    --fail \
    --location \
    -X PUT \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v2/servers/string/storage-space-notification-threshold
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.project.storagespaceReplaceServerNotificationThreshold({
  "serverId": "string"
});
assertStatus(response, 204);
  
use \Mittwald\ApiClient\Generated\V2\Clients\Project\StoragespaceReplaceServerNotificationThreshold\StoragespaceReplaceServerNotificationThresholdRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Project\StoragespaceReplaceServerNotificationThreshold\StoragespaceReplaceServerNotificationThresholdRequestBody;
  
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// StoragespaceReplaceServerNotificationThresholdRequestBody to learn how to construct a valid instance
$body = new StoragespaceReplaceServerNotificationThresholdRequestBody(/* TODO: ... */);
$request = (new StoragespaceReplaceServerNotificationThresholdRequest(
  serverId: "string",
  body: $body
));
$response = $client->project()->storagespaceReplaceServerNotificationThreshold($request);
var_dump($response->getBody();