Patch Extension
PATCH/contributors/ {contributorId}/ extensions/ {extensionId}/
v2
PATCH
extension-patch-extension
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PATCH \
-d '{"deprecation":{"deprecatedAt":"2025-03-12T00:29:29.635Z","note":"This extension is no longer actively maintained. Please Use the successor extension instead.","successorId":"f0f86186-0a5a-45b2-aa33-502777496347"},"description":"string","detailedDescriptions":{"de":{"markdown":"string","plain":"string"},"en":{"markdown":"string","plain":"string"}},"externalFrontends":[{"name":"string","url":"string"}],"frontendFragments":{"string":null},"name":"string","scopes":["string"],"subTitle":{"de":"Ping deine App an","en":"Ping your app"},"support":{"email":"a.lovelace@example.com","phone":"string"},"tags":["string"],"webhookUrls":{"extensionAddedToContext":{"url":"string"},"extensionInstanceRemovedFromContext":{"url":"string"},"extensionInstanceSecretRotated":{"url":"string"},"extensionInstanceUpdated":{"url":"string"}}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347
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.extensionPatchExtension({
"contributorId": "string",
"extensionId": "f0f86186-0a5a-45b2-aa33-502777496347",
"data": {
"deprecation": {
"deprecatedAt": "2025-03-12T00:29:29.635Z",
"note": "This extension is no longer actively maintained. Please Use the successor extension instead.",
"successorId": "f0f86186-0a5a-45b2-aa33-502777496347"
},
"description": "string",
"detailedDescriptions": {
"de": {
"markdown": "string",
"plain": "string"
},
"en": {
"markdown": "string",
"plain": "string"
}
},
"externalFrontends": [
{
"name": "string",
"url": "string"
}
],
"frontendFragments": {
"string": null
},
"name": "string",
"scopes": [
"string"
],
"subTitle": {
"de": "Ping deine App an",
"en": "Ping your app"
},
"support": {
"email": "a.lovelace@example.com",
"phone": "string"
},
"tags": [
"string"
],
"webhookUrls": {
"extensionAddedToContext": {
"url": "string"
},
"extensionInstanceRemovedFromContext": {
"url": "string"
},
"extensionInstanceSecretRotated": {
"url": "string"
},
"extensionInstanceUpdated": {
"url": "string"
}
}
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ExtensionPatchExtension\ExtensionPatchExtensionRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ExtensionPatchExtension\ExtensionPatchExtensionRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// ExtensionPatchExtensionRequestBody to learn how to construct a valid instance
$body = new ExtensionPatchExtensionRequestBody(/* TODO: ... */);
$request = (new ExtensionPatchExtensionRequest(
contributorId: "string",
extensionId: "f0f86186-0a5a-45b2-aa33-502777496347",
body: $body
));
$response = $client->marketplace()->extensionPatchExtension($request);
var_dump($response->getBody();