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": {},
"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>"
}
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": {},
"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>"
}
API key authentication
Updated chat deployment
The response is of type object
.