---
title: "/:channel/:commandId"
method: PUT
path: "/bot/commands/{channel}/{commandId}"
tags: ["commands"]
---

# /:channel/:commandId

`PUT /bot/commands/{channel}/{commandId}`

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/bot/commands/{channel}/{commandId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.streamelements.com/oauth2/authorize`
    - Token URL: `https://api.streamelements.com/oauth2/token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/streamelements/apis/se-api-docs/docs/bot/commands/:channel/:commandId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update command details

## Path parameters

- `channel` string, required
- `commandId` string, required

## Headers

- `Accept` string, required

## Request body

- Command
  - `cooldown` Cooldown, required
    - `user` integer, required
    - `global` integer, required
  - `aliases` string[], required
  - `keywords` string[], required
  - `enabled` boolean, required
  - `enabledOnline` boolean, required
  - `enabledOffline` boolean, required
  - `hidden` boolean, required
  - `cost` integer, required
  - `type` string, required
  - `accessLevel` integer, required
  - `regex` string, required
  - `reply` string, required
  - `command` string, required
  - `channel` string, required

## Response `200`

- BotCommand
  - `cooldown` Cooldown, required
    - `user` integer, required
    - `global` integer, required
  - `aliases` string[], required
  - `keywords` string[], required
  - `enabled` boolean, required
  - `enabledOnline` boolean, required
  - `enabledOffline` boolean, required
  - `hidden` boolean, required
  - `cost` integer, required
  - `type` string, required
  - `accessLevel` integer, required
  - `_id` string
  - `regex` string, required
  - `reply` string, required
  - `command` string, required
  - `channel` string, required
  - `createdAt` string
  - `updatedAt` string

## Changes

- **2021-02-22** `51e3df32da57`: 18 breaking
  - added the new required request property `accessLevel`
  - added the new required request property `aliases`
  - added the new required request property `channel`
  - added the new required request property `command`
  - …14 more
- **2021-02-07** `8c745ed2e9e4`: 11 warning
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `200`
  - the optional response header `Access-Control-Expose-Headers` removed for the status `200`
  - the optional response header `ETag` removed for the status `200`
  - the optional response header `Server` removed for the status `200`
  - …7 more

[Operation history](https://skmtc.dev/streamelements/apis/se-api-docs/changes/bot/commands/:channel/:commandId/put.md)

---

[API](https://skmtc.dev/streamelements/apis/se-api-docs.md) - [All operations](https://skmtc.dev/streamelements/apis/se-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/streamelements/apis/se-api-docs/revisions/aa13169b9373?raw)
