---
title: "Define a new command"
method: POST
path: "/commands"
tags: ["Commands"]
---

# Define a new command

`POST /commands`

## Response `200`

Command that was created

## Changes

- **2022-06-29** `a4e8a36890d5` — 2 info
  - added the new optional request property `allOf[#/components/schemas/EditableCommand]/deliveryMethod/value/oneOf[#/components/schemas/JobDeliveryMethod]/allOf[subschema #2]/targetSelection`
  - added the optional property `allOf[#/components/schemas/EditableCommand]/deliveryMethod/value/oneOf[#/components/schemas/JobDeliveryMethod]/allOf[subschema #2]/targetSelection` to the response with the `200` status

[Change history](https://skmtc.dev/aws-samples/apis/cdf-command-control-service/changes/commands/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)
