update personalized settings
PUT/user/ settings/
v2
PUT
deprecated-user-service-personalized-settings-update
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PUT \
-d '{"settingsString":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/user/settings
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.user.deprecatedUserServicePersonalizedSettingsUpdate({
"data": {
"settingsString": "string"
}
});
assertStatus(response, 204);
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserServicePersonalizedSettingsUpdate\DeprecatedUserServicePersonalizedSettingsUpdateRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserServicePersonalizedSettingsUpdate\DeprecatedUserServicePersonalizedSettingsUpdateRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// DeprecatedUserServicePersonalizedSettingsUpdateRequestBody to learn how to construct a valid instance
$body = new DeprecatedUserServicePersonalizedSettingsUpdateRequestBody(/* TODO: ... */);
$request = (new DeprecatedUserServicePersonalizedSettingsUpdateRequest(
body: $body
));
$response = $client->user()->deprecatedUserServicePersonalizedSettingsUpdate($request);
var_dump($response->getBody();