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

# /:channel/default/:commandId

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

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/bot/commands/{channel}/default/{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/default/:commandId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update default command

## Path parameters

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

## Headers

- `Accept` string, required

## Request body

- object

## 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

## Other responses

- `400`: Bad Request

## Changes

- **2021-02-22** `51e3df32da57`: 1 breaking, 7 info
  - removed the required property `commandId` from the response with the `200` status
  - added the optional property `_id` to the response with the `200` status
  - added the optional property `createdAt` to the response with the `200` status
  - added the optional property `updatedAt` to the response with the `200` status
  - …4 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/default/: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)
