Update Genesys Cloud handoff settings
curl --request PATCH \
--url http://localhost:8080/integrations/genesys/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"smart_routing": true,
"resume_ai_after_wrapup": true
}
'import requests
url = "http://localhost:8080/integrations/genesys/settings"
payload = {
"smart_routing": True,
"resume_ai_after_wrapup": 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({smart_routing: true, resume_ai_after_wrapup: true})
};
fetch('http://localhost:8080/integrations/genesys/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/genesys/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([
'smart_routing' => true,
'resume_ai_after_wrapup' => 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/genesys/settings"
payload := strings.NewReader("{\n \"smart_routing\": true,\n \"resume_ai_after_wrapup\": 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/genesys/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"smart_routing\": true,\n \"resume_ai_after_wrapup\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/genesys/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 \"smart_routing\": true,\n \"resume_ai_after_wrapup\": true\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"region": "mypurecloud.com",
"client_id": "<string>",
"genesys_org_id": "<string>",
"genesys_org_name": "<string>",
"auth_mode": "manual",
"enabled": true,
"live": true,
"current_ticketing_system": "<string>",
"needs_reconnect": true,
"open_messaging_integration_id": "<string>",
"default_queue_id": "<string>",
"handoff_target": "genesys_routing",
"handoff_agent_id": "<string>",
"on_conversation_end": "close",
"no_agents_policy": "handoff_anyway",
"default_wrapup_code_id": "<string>",
"workitem_mode": "never",
"workitem_worktype_id": "<string>",
"presence_sync": "off",
"native_email": {
"enabled": true,
"queue_id": "<string>",
"human_queue_id": "<string>",
"reply_mode": "agentless",
"from_address": "<string>"
},
"native_messaging": {
"enabled": true,
"connector_url": "<string>",
"secret_header": "<string>"
},
"smart_routing": true,
"resume_ai_after_wrapup": true,
"wrapup_suggestion_mode": "off"
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Genesys Cloud Integration
Update settings
Change how OpenCX hands sessions to Genesys Cloud. Omitted fields keep their value.
PATCH
/
integrations
/
genesys
/
settings
Update Genesys Cloud handoff settings
curl --request PATCH \
--url http://localhost:8080/integrations/genesys/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"smart_routing": true,
"resume_ai_after_wrapup": true
}
'import requests
url = "http://localhost:8080/integrations/genesys/settings"
payload = {
"smart_routing": True,
"resume_ai_after_wrapup": 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({smart_routing: true, resume_ai_after_wrapup: true})
};
fetch('http://localhost:8080/integrations/genesys/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/genesys/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([
'smart_routing' => true,
'resume_ai_after_wrapup' => 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/genesys/settings"
payload := strings.NewReader("{\n \"smart_routing\": true,\n \"resume_ai_after_wrapup\": 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/genesys/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"smart_routing\": true,\n \"resume_ai_after_wrapup\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/genesys/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 \"smart_routing\": true,\n \"resume_ai_after_wrapup\": true\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"region": "mypurecloud.com",
"client_id": "<string>",
"genesys_org_id": "<string>",
"genesys_org_name": "<string>",
"auth_mode": "manual",
"enabled": true,
"live": true,
"current_ticketing_system": "<string>",
"needs_reconnect": true,
"open_messaging_integration_id": "<string>",
"default_queue_id": "<string>",
"handoff_target": "genesys_routing",
"handoff_agent_id": "<string>",
"on_conversation_end": "close",
"no_agents_policy": "handoff_anyway",
"default_wrapup_code_id": "<string>",
"workitem_mode": "never",
"workitem_worktype_id": "<string>",
"presence_sync": "off",
"native_email": {
"enabled": true,
"queue_id": "<string>",
"human_queue_id": "<string>",
"reply_mode": "agentless",
"from_address": "<string>"
},
"native_messaging": {
"enabled": true,
"connector_url": "<string>",
"secret_header": "<string>"
},
"smart_routing": true,
"resume_ai_after_wrapup": true,
"wrapup_suggestion_mode": "off"
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Was this page helpful?