Update a chatbot
curl --request PATCH \
--url https://api.pineyard.ai/chatbots/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"temperature": 1,
"maxOutputTokens": 4128,
"rateLimitPerMinute": 5000,
"knowledgeBaseIds": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
systemPrompt: '<string>',
model: '<string>',
temperature: 1,
maxOutputTokens: 4128,
rateLimitPerMinute: 5000,
knowledgeBaseIds: ['<string>']
})
};
fetch('https://api.pineyard.ai/chatbots/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/chatbots/{id}"
payload = {
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"temperature": 1,
"maxOutputTokens": 4128,
"rateLimitPerMinute": 5000,
"knowledgeBaseIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"status": "<string>",
"temperature": 123,
"maxOutputTokens": 123,
"rateLimitPerMinute": 123,
"secretKeyLast4": "<string>",
"knowledgeBaseIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}Chatbots
Update a chatbot
Update configuration, pause/resume, or replace knowledge-base attachments.
PATCH
/
chatbots
/
{id}
Update a chatbot
curl --request PATCH \
--url https://api.pineyard.ai/chatbots/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"temperature": 1,
"maxOutputTokens": 4128,
"rateLimitPerMinute": 5000,
"knowledgeBaseIds": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
systemPrompt: '<string>',
model: '<string>',
temperature: 1,
maxOutputTokens: 4128,
rateLimitPerMinute: 5000,
knowledgeBaseIds: ['<string>']
})
};
fetch('https://api.pineyard.ai/chatbots/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/chatbots/{id}"
payload = {
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"temperature": 1,
"maxOutputTokens": 4128,
"rateLimitPerMinute": 5000,
"knowledgeBaseIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"systemPrompt": "<string>",
"model": "<string>",
"status": "<string>",
"temperature": 123,
"maxOutputTokens": 123,
"rateLimitPerMinute": 123,
"secretKeyLast4": "<string>",
"knowledgeBaseIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}Required scope:
chatbots.edit
Requires chatbots enabled on your account. Otherwise the request is refused; see Errors.
Authorizations
Your API key, e.g. pk_live_xxxxxxxxxxxxxxxxxxxxxxxx.
Path Parameters
Body
application/json
Required string length:
1 - 120Required string length:
1 - 20000Required string length:
1 - 120Required range:
0 <= x <= 2Required range:
64 <= x <= 8192Required range:
1 <= x <= 10000Available options:
ACTIVE, PAUSED Maximum array length:
50Minimum string length:
1Response
OK

