Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Agent Bots → Update An Agent Bot

AI-generated

Summary

Update an existing Agent Bot by specifying its new name, description, webhook URL, account ID, avatar image data or URL, and optional request settings.

Inputs

  • Name (required) — The new name of the agent bot.
  • Description (required) — The new description of the agent bot.
  • Outgoing Url (required) — The webhook URL the agent bot will call.
  • Account Id (required) — The account ID associated with the agent bot.
  • Avatar — Binary data for the bot's avatar image; send via form data.
  • Avatar Url — URL pointing to an image to use as the agent bot's avatar; jpeg or png format.
  • Request Options — Allows configuration of batching, SSL validation, proxy settings, and timeout for the HTTP request.

Output shape

A single record containing the updated agent bot's details as returned from the Coghub API.

The response shape depends on the Coghub API's update agent bot endpoint. Optional requestOptions let you control HTTP batching, SSL certificate acceptance, proxy usage, and timeout settings for the request.

Examples

Example 1: Update an agent bot with new details and avatar URL

Set Name, Description, Outgoing Url, Account Id, and Avatar Url parameters; optionally adjust request options.

Links

Discussion