Bots · Developer account

updateBot

Update a bot's profile

This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.

Partial update of name/description/avatar_url. At least one field must be supplied. Username cannot be changed.

Request

curl https://api.sprintelex.com/updateBot \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>"}'

Parameters

NameTypeRequiredRules
bot_idstringYes-
namestringNotrimmed; 1-64 characters when provided
descriptionstringNotrimmed; at most 512 characters when provided
avatar_urlstringNohttps URL; empty string clears it (stored as null)

Response

{ ok: true, result: { bot: { id, name, username, avatar_url, description, created_at } } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
400name must be 1-64 charactersname empty or longer than 64
400description must be at most 512 charactersdescription longer than 512
400avatar_url must be an https URLavatar_url not https
400nothing to updateno updatable fields supplied
404bot not foundno such bot, not owned by caller, or deleted