Submit user feedback
POST/user/ feedback/
v2
POST
deprecated-user-service-feedback-create
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X POST \
-d '{"message":"string","origin":"string","subject":"string","vote":123}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/user/feedback
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.deprecatedUserServiceFeedbackCreate({
"data": {
"message": "string",
"origin": "string",
"subject": "string",
"vote": 123
}
});
assertStatus(response, 201);
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserServiceFeedbackCreate\DeprecatedUserServiceFeedbackCreateRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserServiceFeedbackCreate\DeprecatedUserServiceFeedbackCreateRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// DeprecatedUserServiceFeedbackCreateRequestBody to learn how to construct a valid instance
$body = new DeprecatedUserServiceFeedbackCreateRequestBody(/* TODO: ... */);
$request = (new DeprecatedUserServiceFeedbackCreateRequest(
body: $body
));
$response = $client->user()->deprecatedUserServiceFeedbackCreate($request);
var_dump($response->getBody();