---
title: "POST /v1/ssh-command-actions/dispatch/count"
method: POST
path: "/v1/ssh-command-actions/dispatch/count"
tags: ["SSHCommand"]
---

# POST /v1/ssh-command-actions/dispatch/count

`POST /v1/ssh-command-actions/dispatch/count`

## Request

- The document declares no server URL.
- Auth: none declared

CountDispatchSSHCommandTargets counts affected machines before dispatch.

## Request body

- JadeTreeApiV1CountDispatchSSHCommandTargetsRequest
  - `filter` JadeTreeApiV1DispatchSSHCommandFilter
    - `includeMachineUids` string[]
    - `includeSystemTypes` string[]
    - `includeAgentVersions` string[]
    - `excludeMachineUids` string[]
    - `excludeSystemTypes` string[]
    - `excludeAgentVersions` string[]

## Response `200`

OK

- JadeTreeApiV1CountDispatchSSHCommandTargetsReply
  - `count` string

## Changes

- **2026-04-09** `0d6b7b266755`: 1 info
  - endpoint added
- **2026-03-31** `78c6a8306f65`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/aide-family/apis/aide-family-jade-tree-api/changes/v1/ssh-command-actions/dispatch/count/post.md)

---

[API](https://skmtc.dev/aide-family/apis/aide-family-jade-tree-api.md) - [All operations](https://skmtc.dev/aide-family/apis/aide-family-jade-tree-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aide-family/apis/aide-family-jade-tree-api/revisions/7c1198712e80?raw)
