---
title: "Update command"
method: PUT
path: "/commands/{name}"
tags: ["product:chat"]
---

# Update command

`PUT /commands/{name}`

Updates custom chat command

## Path parameters

- `name` string, required — Unique command name

## Request body

- UpdateCommandRequest, nullable
  - `args` string — Arguments help text, shown in commands auto-completion
  - `description` string, required — Description, shown in commands auto-completion
  - `set` string — Set name used for grouping commands

## Response `201`

UpdateCommandResponse

- UpdateCommandResponse, nullable
  - `command` Command, nullable — Represents custom chat command
    - `args` string, required — Arguments help text, shown in commands auto-completion
    - `created_at` string, date-time — Date/time of creation
    - `description` string, required — Description, shown in commands auto-completion
    - `name` string, required — Unique command name
    - `set` string, required — Set name used for grouping commands
    - `updated_at` string, date-time — Date/time of the last update
  - `duration` string, required

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/509a44ead023/schema)
