---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:stopAirflowCommand"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:stopAirflowCommand"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:stopAirflowCommand

`POST /v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:stopAirflowCommand`

## Request

- Base URL: `https://composer.googleapis.com`
- URL: `https://composer.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}:stopAirflowCommand`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloudcomposer`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloudcomposer`
- TypeScript: <https://skmtc.dev/google/apis/composer/docs/v1/projects/:projectsId/locations/:locationsId/environments/:environmentsId:stopAirflowCommand/post.ts> (a function with typed inputs; its response is checked against the schema)

Stops Airflow CLI command execution.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `environmentsId` string, required

## Request body

- StopAirflowCommandRequest: Stop Airflow Command request.
  - `executionId` string: The unique ID of the command execution.
  - `force` boolean: If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup.
  - `pod` string: The name of the pod where the command is executed.
  - `podNamespace` string: The namespace of the pod where the command is executed.

## Response `200`

Successful response

- StopAirflowCommandResponse: Response to StopAirflowCommandRequest.
  - `isDone` boolean: Whether the execution is still running.
  - `output` string[]: Output message from stopping execution request.

## Changes

- **2026-11-07** `9c23b974ddbb`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloudcomposer` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloudcomposer` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/composer/changes/v1/projects/:projectsId/locations/:locationsId/environments/:environmentsId:stopAirflowCommand/post.md)

---

[API](https://skmtc.dev/google/apis/composer.md) - [All operations](https://skmtc.dev/google/apis/composer/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/composer/revisions/9c23b974ddbb?raw)
