---
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`

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

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

---

[API](https://skmtc.dev/aide-family/apis/untitled-api-4.md) · [All operations](https://skmtc.dev/aide-family/apis/untitled-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aide-family/untitled-api-4/revisions/7c1198712e80/schema)
