Dry run a webhook with random or given values
POST/contributors/ {contributorId}/ extensions/ {extensionId}/ extension-instances/ {extensionInstanceId}/ actions/ dry-run/ {webhookKind}/
v2
POST
extension-dry-run-webhook
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347/extension-instances/f0f86186-0a5a-45b2-aa33-502777496347/actions/dry-run/extension-added-to-context?contextId=string&scopes=string&instanceDisabled=true&createdAt=2024-12-18T07%3A53%3A16.728Z&secret=string
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.marketplace.extensionDryRunWebhook({
"contributorId": "string",
"extensionId": "f0f86186-0a5a-45b2-aa33-502777496347",
"extensionInstanceId": "f0f86186-0a5a-45b2-aa33-502777496347",
"webhookKind": "extension-added-to-context",
"queryParameters": {
"contextId": "string",
"scopes": [
"string"
],
"instanceDisabled": true,
"createdAt": "2024-12-18T07:53:16.728Z",
"secret": "string"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ExtensionDryRunWebhook\ExtensionDryRunWebhookRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new ExtensionDryRunWebhookRequest(
contributorId: "string",
extensionId: "f0f86186-0a5a-45b2-aa33-502777496347",
extensionInstanceId: "f0f86186-0a5a-45b2-aa33-502777496347",
webhookKind: "extension-added-to-context"
))
->withContextId("string")
->withScopes(["string"])
->withInstanceDisabled(true)
->withCreatedAt("2024-12-18T07:53:16.728Z")
->withSecret("string");
$response = $client->marketplace()->extensionDryRunWebhook($request);
var_dump($response->getBody();