curl --request POST \
--url https://{server-url}/openai/settings/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"openaiCredsId": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
],
"openaiIdFallback": "<string>"
}'
{
"success": true,
"message": "<string>"
}
curl --request POST \
--url https://{server-url}/openai/settings/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"openaiCredsId": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
],
"openaiIdFallback": "<string>"
}'
{
"success": true,
"message": "<string>"
}
Your authorization key header
Name of the instance
Configuration for updating the OpenAI bot settings
The body is of type object
.
Successfully updated OpenAI bot settings
The response is of type object
.