dots.v2.apps.byApp_Id().jobInvocations.byJob_invocation_id().cancel.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.apps.byApp_Id(app_Id).jobInvocations.byJob_invocation_id(job_invocation_id).cancel.post(requestConfiguration?: RequestConfiguration<CancelRequestBuilderPostQueryParameters>): Promise<undefined | App_job_invocation>

Description

Cancel a specific job invocation for an app.

Parameters

Path Parameters

app_Id string required

Example: 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf

The app ID

job_invocation_id string required

Example: 123e4567-e89b-12d3-a456-426

The ID of the job invocation to retrieve.

Query Parameters

jobName string optional

Example: component

The job name to list job invocations for.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.apps
    .byApp_Id("4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf").jobInvocations
    .byJob_invocation_id("123e4567-e89b-12d3-a456-426").cancel.post();

Response Example

Show Response Example
{
  "job_invocation": [
    {
      "id": "ba32b134-569c-4c0c-ba02-8ffdb0492ece",
      "job_name": "good-job",
      "deployment_id": "c020763f-ddb7-4112-a0df-7f01c69fc00b",
      "phase": "SUCCEEDED",
      "created_at": "2025-09-11T11:04:05Z",
      "started_at": "2025-09-11T11:04:10Z",
      "completed_at": "2025-09-11T11:04:40Z",
      "trigger": [
        {
          "type": "SCHEDULED",
          "scheduled": [
            {
              "schedule": {
                "cron": "*/2 * * * *",
                "time_zone": "UTC"
              }
            }
          ]
        }
      ]
    }
  ]
}

More Information

See /v2/apps/{app_id}/job-invocations/{job_invocation_id}/cancel in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.