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