API v2/PATCH

Update bot configuration

Update bot configuration (currently only supports updating the extra parameter).

Allows updating the extra metadata even while the bot is running. The updated extra will be reflected in subsequent webhooks and API responses. This is useful when your system evolves and you need to attach additional tracking information to a bot after it has started.

Merge Behavior: The extra parameter performs a shallow merge with the existing extra object:

  • New keys are added to the existing extra object
  • Existing keys are overwritten with new values
  • Keys not included in the update request remain unchanged
  • Pass null to clear all extra data

Example Merge:

  • Current extra: { "customer_id": "123", "session_id": "abc" }
  • Update with: { "session_id": "xyz", "order_id": "456" }
  • Result: { "customer_id": "123", "session_id": "xyz", "order_id": "456" }

Webhook Behavior: After updating extra, all future webhooks (including status updates) will use the new value from the database. The updated extra is fetched in real-time for each webhook, ensuring consistency.

Works for Any Bot Status: You can update extra for bots in any status (queued, recording, completed, failed). This allows you to add correlation metadata even after a bot has finished.

Use Cases:

  • Add tracking IDs after bot creation
  • Update correlation metadata when your system state changes
  • Fix incorrect tracking information
  • Add additional context for completed bots

Returns 404 if the bot is not found or does not belong to your team.

PATCH
/v2/bots/{bot_id}/update-config

Authorization

ApiKeyAuth
x-meeting-baas-api-key<token>

Your Meeting BaaS API key. Get one from your account settings.

In: header

Path Parameters

bot_id*string

The UUID of the bot to update configuration for.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

extra*|

Custom metadata to merge with existing extra data (shallow merge)

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.meetingbaas.com/v2/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/update-config" \  -H "Content-Type: application/json" \  -d '{    "extra": {      "foo": "bar"    }  }'
{
  "data": {
    "message": "string"
  },
  "success": true
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "statusCode": 9007199254740991,
  "success": false
}
{
  "code": "string",
  "details": "string",
  "error": "string",
  "message": "string",
  "statusCode": 9007199254740991,
  "success": false
}
{
  "code": "string",
  "details": "string",
  "error": "string",
  "message": "string",
  "retryAfter": 9007199254740991,
  "statusCode": 9007199254740991,
  "success": false
}
{
  "code": "string",
  "details": "string",
  "error": "string",
  "message": "string",
  "statusCode": 9007199254740991,
  "success": false
}