---
title: "Uploads a file required for the command"
method: PUT
path: "/commands/{commandId}/files/{fileId}"
tags: ["Commands"]
---

# Uploads a file required for the command

`PUT /commands/{commandId}/files/{fileId}`

## Response `201`

Created successfully

## Other responses

- `400` — Invalid input

---

[API](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-commands-service.md) · [All operations](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-commands-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/aws-connected-device-framework-commands-service/revisions/96a480909a1c/schema)
