Bot
Update Bot Handler
API Documentation
- Authentication
- Authentication by API key
- Bot
- Chat
- Import data
Endpoint Examples
- POSTLogin To Obtain Access Token
- Bot
- Chat
- Import data
Bot
Update Bot Handler
Update bot information.
PUT
/
api
/
bot
curl --request PUT \
--url https://backend.chatfly.co/api/bot \
--header 'Content-Type: application/json' \
--data '{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bot_name": "<string>",
"case_study": "<string>",
"is_visibility": true,
"domain": [
"<string>"
],
"collect_customer_info": {},
"rules": [
"<string>"
],
"gpt_model_name": "<string>",
"temperature": 123,
"custom_prompt": "<string>",
"bot_tone_type": 123,
"custom_error_message": "<string>",
"is_enable_citation": true,
"is_activate": true,
"bot_language": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bot_name": "<string>",
"case_study": "<string>",
"is_visibility": true,
"domain": [
"<string>"
],
"collect_customer_info": {},
"rules": [
"<string>"
],
"gpt_model_name": "<string>",
"temperature": 123,
"custom_prompt": "<string>",
"bot_tone_type": 123,
"custom_error_message": "<string>",
"is_enable_citation": true,
"is_activate": true,
"bot_language": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"num_message_left": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2024-01-19T17:53:51.643870"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Schema for updating a bot.
Response
200
application/json
Successful Response
Bot Schema.
Was this page helpful?
curl --request PUT \
--url https://backend.chatfly.co/api/bot \
--header 'Content-Type: application/json' \
--data '{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bot_name": "<string>",
"case_study": "<string>",
"is_visibility": true,
"domain": [
"<string>"
],
"collect_customer_info": {},
"rules": [
"<string>"
],
"gpt_model_name": "<string>",
"temperature": 123,
"custom_prompt": "<string>",
"bot_tone_type": 123,
"custom_error_message": "<string>",
"is_enable_citation": true,
"is_activate": true,
"bot_language": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bot_name": "<string>",
"case_study": "<string>",
"is_visibility": true,
"domain": [
"<string>"
],
"collect_customer_info": {},
"rules": [
"<string>"
],
"gpt_model_name": "<string>",
"temperature": 123,
"custom_prompt": "<string>",
"bot_tone_type": 123,
"custom_error_message": "<string>",
"is_enable_citation": true,
"is_activate": true,
"bot_language": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"num_message_left": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2024-01-19T17:53:51.643870"
}