Abort a cronjob execution. Deprecated because this feature is not available at this time
POST/cronjobs/ {cronjobId}/ executions/ {executionId}/ actions/ abort/
v2
POST
deprecated-cronjob-abort-execution
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/cronjobs/string/executions/cron-bd26li-28027320/actions/abort
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.cronjob.deprecatedCronjobAbortExecution({
"cronjobId": "string",
"executionId": "cron-bd26li-28027320"
});
assertStatus(response, 204);
use \Mittwald\ApiClient\Generated\V2\Clients\Cronjob\DeprecatedCronjobAbortExecution\DeprecatedCronjobAbortExecutionRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new DeprecatedCronjobAbortExecutionRequest(
cronjobId: "string",
executionId: "cron-bd26li-28027320"
));
$response = $client->cronjob()->deprecatedCronjobAbortExecution($request);
var_dump($response->getBody();