---
title: "Patch a bot"
method: PUT
path: "/api/v4/bots/{bot_user_id}"
tags: ["bots"]
---

# Patch a bot

`PUT /api/v4/bots/{bot_user_id}`

Partially update a bot by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored.
##### Permissions
Must have `manage_bots` permission.

## Path parameters

- `bot_user_id` string, required

## Request body

- object
  - `username` string, required
  - `display_name` string
  - `description` string

## Response `200`

Bot patch successful

- 38cb7293Bot — A bot account
  - `user_id` string — The user id of the associated user entry.
  - `create_at` integer — The time in milliseconds a bot was created
  - `update_at` integer — The time in milliseconds a bot was last updated
  - `delete_at` integer — The time in milliseconds a bot was deleted
  - `username` string
  - `display_name` string
  - `description` string
  - `owner_id` string — The user id of the user that currently owns this bot.

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
