---
title: "Sends a new message of a specific command to a target."
method: POST
path: "/commands/{commandId}/messages"
tags: ["Messages"]
---

# Sends a new message of a specific command to a target.

`POST /commands/{commandId}/messages`

## Response `200`

Message that was created

## Changes

- **2022-06-29** `a4e8a36890d5` — 2 warning
  - removed the request property `allOf[#/components/schemas/NewMessage]/targets`
  - removed the optional property `allOf[#/components/schemas/NewMessage]/targets` from the response with the `200` status

[Change history](https://skmtc.dev/aws-samples/apis/cdf-command-control-service/changes/commands/:commandId/messages/post.md)

---

[API](https://skmtc.dev/aws-samples/apis/cdf-command-control-service.md) · [All operations](https://skmtc.dev/aws-samples/apis/cdf-command-control-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/cdf-command-control-service/revisions/3c7940ca634e/schema)
