Update an AI agent
POST /agents/{agent_id}
curl -X POST "https://app.bualpro.com/api/agents/3.14" \
-H "Content-Type: application/json" \
-H "X-ACCESS-TOKEN: YOUR_API_KEY" \
-d '{
"prompt": "Your prompt here"
}'
import requests
import json
url = "https://app.bualpro.com/api/agents/3.14"
headers = {
"Content-Type": "application/json",
"X-ACCESS-TOKEN": "YOUR_API_KEY"
}
data = {
"prompt": "Your prompt here"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.bualpro.com/api/agents/3.14", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-ACCESS-TOKEN": "YOUR_API_KEY"
},
body: JSON.stringify({
"prompt": "Your prompt here"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"prompt": "Your prompt here"
}`)
req, err := http.NewRequest("POST", "https://app.bualpro.com/api/agents/3.14", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-ACCESS-TOKEN", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://app.bualpro.com/api/agents/3.14')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-ACCESS-TOKEN'] = 'YOUR_API_KEY'
request.body = '{
"prompt": "Your prompt here"
}'
response = http.request(request)
puts response.body
{
"id": 3.14,
"name": "Johan Ahmad",
"created_by": 3.14,
"created_at": "2024-12-25T10:00:00Z"
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
/agents/{agent_id}Target server for requests. Edit to use your own host.
API key (sent in header)
The media type of the request body
The prompt field for the AI agent
The max_output_tokens field for the AI agent
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Body
The prompt field for the AI agent
The max_output_tokens field for the AI agent
Responses
Date in UTC. Example 2022-10-12 14:40:00
Update AI agent by id
The source does not declare a request media type. The JSON representation shown here is a documentation conversion default; confirm the required Content-Type before integrating.