PATCH
/
api
/
workers
/
{workerId}
/
deployments
/
chat
/
{deploymentId}
curl --request PATCH \
  --url https://brainbase-monorepo-api.onrender.com/api/workers/{workerId}/deployments/chat/{deploymentId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "flowId": "<string>",
  "allowedUsers": [
    "<string>"
  ],
  "welcomeMessage": "<string>",
  "llmModel": "<string>",
  "modelConfig": {},
  "extractions": "<string>",
  "successCriteria": [
    {
      "title": "<string>",
      "description": "<string>",
      "items": [
        {
          "title": "<string>",
          "description": "<string>",
          "type": "BINARY",
          "threshold": 123
        }
      ]
    }
  ]
}'
{
  "id": "<string>",
  "allowedUsers": "<string>",
  "welcomeMessage": "<string>",
  "llmModel": "<string>",
  "modelConfig": {},
  "chatAgentId": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json

Response

200
application/json

Updated chat deployment

The response is of type object.