---
title: "POST /v1/{+name}:executeCommand"
method: POST
path: "/v1/{+name}:executeCommand"
tags: ["enterprises"]
---

# POST /v1/{+name}:executeCommand

`POST /v1/{+name}:executeCommand`

Executes a command to device managed by the enterprise.

## Path parameters

- `name` string, required

## Request body

- GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest — Request message for SmartDeviceManagementService.ExecuteDeviceCommand
  - `params` object — The command message to execute, represented as a Struct.
  - `command` string — The command name to execute, represented by the fully qualified protobuf message name.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/smartdevicemanagement.md) · [All operations](https://skmtc.dev/google/apis/smartdevicemanagement/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/smartdevicemanagement/revisions/b1ff6ac14e9a/schema)
