Update Infobip integration settings
curl --request PATCH \
--url http://localhost:8080/integrations/infobip/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_agent_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"handle_unassigned": true,
"process_on_assignment": true,
"close_on_resolve": true,
"rollout_conversation_count": 4503599627370495,
"handle_out_of_working_hours": true
}
'import requests
url = "http://localhost:8080/integrations/infobip/settings"
payload = {
"default_agent_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"handle_unassigned": True,
"process_on_assignment": True,
"close_on_resolve": True,
"rollout_conversation_count": 4503599627370495,
"handle_out_of_working_hours": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
default_agent_id: '<string>',
handoff_queue_id: '<string>',
ai_agent_queue_id: '<string>',
handle_unassigned: true,
process_on_assignment: true,
close_on_resolve: true,
rollout_conversation_count: 4503599627370495,
handle_out_of_working_hours: true
})
};
fetch('http://localhost:8080/integrations/infobip/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/infobip/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'default_agent_id' => '<string>',
'handoff_queue_id' => '<string>',
'ai_agent_queue_id' => '<string>',
'handle_unassigned' => true,
'process_on_assignment' => true,
'close_on_resolve' => true,
'rollout_conversation_count' => 4503599627370495,
'handle_out_of_working_hours' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/infobip/settings"
payload := strings.NewReader("{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/integrations/infobip/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/infobip/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"base_url": "<string>",
"default_agent_id": "<string>",
"default_queue_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"enabled": true,
"handle_unassigned": true,
"process_on_assignment": true,
"close_on_resolve": true,
"on_ai_resolution": "close",
"rollout_conversation_count": 0,
"handle_out_of_working_hours": true
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Infobip Integration
Update Infobip integration settings
Change the Infobip AI agent, queues, reply toggles, resolution status, or rollout.
PATCH
/
integrations
/
infobip
/
settings
Update Infobip integration settings
curl --request PATCH \
--url http://localhost:8080/integrations/infobip/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_agent_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"handle_unassigned": true,
"process_on_assignment": true,
"close_on_resolve": true,
"rollout_conversation_count": 4503599627370495,
"handle_out_of_working_hours": true
}
'import requests
url = "http://localhost:8080/integrations/infobip/settings"
payload = {
"default_agent_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"handle_unassigned": True,
"process_on_assignment": True,
"close_on_resolve": True,
"rollout_conversation_count": 4503599627370495,
"handle_out_of_working_hours": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
default_agent_id: '<string>',
handoff_queue_id: '<string>',
ai_agent_queue_id: '<string>',
handle_unassigned: true,
process_on_assignment: true,
close_on_resolve: true,
rollout_conversation_count: 4503599627370495,
handle_out_of_working_hours: true
})
};
fetch('http://localhost:8080/integrations/infobip/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/infobip/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'default_agent_id' => '<string>',
'handoff_queue_id' => '<string>',
'ai_agent_queue_id' => '<string>',
'handle_unassigned' => true,
'process_on_assignment' => true,
'close_on_resolve' => true,
'rollout_conversation_count' => 4503599627370495,
'handle_out_of_working_hours' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/infobip/settings"
payload := strings.NewReader("{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/integrations/infobip/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/infobip/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_agent_id\": \"<string>\",\n \"handoff_queue_id\": \"<string>\",\n \"ai_agent_queue_id\": \"<string>\",\n \"handle_unassigned\": true,\n \"process_on_assignment\": true,\n \"close_on_resolve\": true,\n \"rollout_conversation_count\": 4503599627370495,\n \"handle_out_of_working_hours\": true\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"base_url": "<string>",
"default_agent_id": "<string>",
"default_queue_id": "<string>",
"handoff_queue_id": "<string>",
"ai_agent_queue_id": "<string>",
"enabled": true,
"handle_unassigned": true,
"process_on_assignment": true,
"close_on_resolve": true,
"on_ai_resolution": "close",
"rollout_conversation_count": 0,
"handle_out_of_working_hours": true
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
close, solve Required range:
0 <= x <= 9007199254740991Was this page helpful?