curl --request PATCH \
--url https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": false,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": false,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": false,
"message": "<string>"
},
"clarification": {
"enabled": false
},
"recommendations": {
"enabled": false
},
"neutrality": {
"enabled": false
},
"professionalConduct": {
"enabled": false
},
"legalFinancial": {
"enabled": false
},
"safeguarding": {
"enabled": false,
"email": "jsmith@example.com"
},
"feedback": {
"enabled": false
}
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": false,
"allowContribution": false,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": false,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": false,
"showFollowUpQuestions": false,
"showCitations": false,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"<string>"
],
"mcpserverUids": [
"<string>"
],
"planUids": [
"<string>"
],
"skillUids": [
"<string>"
],
"tags": [
"<string>"
]
}
'import requests
url = "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}"
payload = {
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": False,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": False,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": False,
"message": "<string>"
},
"clarification": { "enabled": False },
"recommendations": { "enabled": False },
"neutrality": { "enabled": False },
"professionalConduct": { "enabled": False },
"legalFinancial": { "enabled": False },
"safeguarding": {
"enabled": False,
"email": "jsmith@example.com"
},
"feedback": { "enabled": False }
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": False,
"allowContribution": False,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": False,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": False,
"showFollowUpQuestions": False,
"showCitations": False,
"showQuickReplies": True
},
"live": True,
"showPromptLibrary": True,
"contextUids": ["<string>"],
"mcpserverUids": ["<string>"],
"planUids": ["<string>"],
"skillUids": ["<string>"],
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agentName: '<string>',
agentPurpose: '<string>',
personality: {preset: 'friendly', customText: '<string>'},
formatting: {preset: 'conversational', customText: '<string>'},
policies: {
focusAndScope: {enabled: false, scope: '<string>'},
knowledgeLimits: {enabled: false, themeSpecificAllowance: '<string>'},
nonContextSegmentMessage: {enabled: false, message: '<string>'},
clarification: {enabled: false},
recommendations: {enabled: false},
neutrality: {enabled: false},
professionalConduct: {enabled: false},
legalFinancial: {enabled: false},
safeguarding: {enabled: false, email: 'jsmith@example.com'},
feedback: {enabled: false}
},
additionalPolicyRules: '<string>',
additionalInformation: '<string>',
iceBreakerMessage: '<string>',
memory: {allowAccess: false, allowContribution: false, miningGuidance: '<string>'},
options: {
showSourceContent: false,
sourceDisplayStyle: 'compact',
sourceCardType: 'segments',
showSpeakers: false,
showFollowUpQuestions: false,
showCitations: false,
showQuickReplies: true
},
live: true,
showPromptLibrary: true,
contextUids: ['<string>'],
mcpserverUids: ['<string>'],
planUids: ['<string>'],
skillUids: ['<string>'],
tags: ['<string>']
})
};
fetch('https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}",
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([
'agentName' => '<string>',
'agentPurpose' => '<string>',
'personality' => [
'preset' => 'friendly',
'customText' => '<string>'
],
'formatting' => [
'preset' => 'conversational',
'customText' => '<string>'
],
'policies' => [
'focusAndScope' => [
'enabled' => false,
'scope' => '<string>'
],
'knowledgeLimits' => [
'enabled' => false,
'themeSpecificAllowance' => '<string>'
],
'nonContextSegmentMessage' => [
'enabled' => false,
'message' => '<string>'
],
'clarification' => [
'enabled' => false
],
'recommendations' => [
'enabled' => false
],
'neutrality' => [
'enabled' => false
],
'professionalConduct' => [
'enabled' => false
],
'legalFinancial' => [
'enabled' => false
],
'safeguarding' => [
'enabled' => false,
'email' => 'jsmith@example.com'
],
'feedback' => [
'enabled' => false
]
],
'additionalPolicyRules' => '<string>',
'additionalInformation' => '<string>',
'iceBreakerMessage' => '<string>',
'memory' => [
'allowAccess' => false,
'allowContribution' => false,
'miningGuidance' => '<string>'
],
'options' => [
'showSourceContent' => false,
'sourceDisplayStyle' => 'compact',
'sourceCardType' => 'segments',
'showSpeakers' => false,
'showFollowUpQuestions' => false,
'showCitations' => false,
'showQuickReplies' => true
],
'live' => true,
'showPromptLibrary' => true,
'contextUids' => [
'<string>'
],
'mcpserverUids' => [
'<string>'
],
'planUids' => [
'<string>'
],
'skillUids' => [
'<string>'
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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 := "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}"
payload := strings.NewReader("{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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("https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": false,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": false,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": false,
"message": "<string>"
},
"clarification": {
"enabled": false
},
"recommendations": {
"enabled": false
},
"neutrality": {
"enabled": false
},
"professionalConduct": {
"enabled": false
},
"legalFinancial": {
"enabled": false
},
"safeguarding": {
"enabled": false,
"email": "jsmith@example.com"
},
"feedback": {
"enabled": false
}
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": false,
"allowContribution": false,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": false,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": false,
"showFollowUpQuestions": false,
"showCitations": false,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"<string>"
],
"mcpserverUids": [
"<string>"
],
"planUids": [
"<string>"
],
"skillUids": [
"<string>"
],
"tags": [
"<string>"
],
"externalTenantId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.Update an agent by UID
Update an agent. Supports partial updates - only include fields you want to change. For nested objects (personality, formatting, policies, memory), the entire nested object is replaced if provided.
curl --request PATCH \
--url https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": false,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": false,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": false,
"message": "<string>"
},
"clarification": {
"enabled": false
},
"recommendations": {
"enabled": false
},
"neutrality": {
"enabled": false
},
"professionalConduct": {
"enabled": false
},
"legalFinancial": {
"enabled": false
},
"safeguarding": {
"enabled": false,
"email": "jsmith@example.com"
},
"feedback": {
"enabled": false
}
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": false,
"allowContribution": false,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": false,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": false,
"showFollowUpQuestions": false,
"showCitations": false,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"<string>"
],
"mcpserverUids": [
"<string>"
],
"planUids": [
"<string>"
],
"skillUids": [
"<string>"
],
"tags": [
"<string>"
]
}
'import requests
url = "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}"
payload = {
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": False,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": False,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": False,
"message": "<string>"
},
"clarification": { "enabled": False },
"recommendations": { "enabled": False },
"neutrality": { "enabled": False },
"professionalConduct": { "enabled": False },
"legalFinancial": { "enabled": False },
"safeguarding": {
"enabled": False,
"email": "jsmith@example.com"
},
"feedback": { "enabled": False }
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": False,
"allowContribution": False,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": False,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": False,
"showFollowUpQuestions": False,
"showCitations": False,
"showQuickReplies": True
},
"live": True,
"showPromptLibrary": True,
"contextUids": ["<string>"],
"mcpserverUids": ["<string>"],
"planUids": ["<string>"],
"skillUids": ["<string>"],
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agentName: '<string>',
agentPurpose: '<string>',
personality: {preset: 'friendly', customText: '<string>'},
formatting: {preset: 'conversational', customText: '<string>'},
policies: {
focusAndScope: {enabled: false, scope: '<string>'},
knowledgeLimits: {enabled: false, themeSpecificAllowance: '<string>'},
nonContextSegmentMessage: {enabled: false, message: '<string>'},
clarification: {enabled: false},
recommendations: {enabled: false},
neutrality: {enabled: false},
professionalConduct: {enabled: false},
legalFinancial: {enabled: false},
safeguarding: {enabled: false, email: 'jsmith@example.com'},
feedback: {enabled: false}
},
additionalPolicyRules: '<string>',
additionalInformation: '<string>',
iceBreakerMessage: '<string>',
memory: {allowAccess: false, allowContribution: false, miningGuidance: '<string>'},
options: {
showSourceContent: false,
sourceDisplayStyle: 'compact',
sourceCardType: 'segments',
showSpeakers: false,
showFollowUpQuestions: false,
showCitations: false,
showQuickReplies: true
},
live: true,
showPromptLibrary: true,
contextUids: ['<string>'],
mcpserverUids: ['<string>'],
planUids: ['<string>'],
skillUids: ['<string>'],
tags: ['<string>']
})
};
fetch('https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}",
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([
'agentName' => '<string>',
'agentPurpose' => '<string>',
'personality' => [
'preset' => 'friendly',
'customText' => '<string>'
],
'formatting' => [
'preset' => 'conversational',
'customText' => '<string>'
],
'policies' => [
'focusAndScope' => [
'enabled' => false,
'scope' => '<string>'
],
'knowledgeLimits' => [
'enabled' => false,
'themeSpecificAllowance' => '<string>'
],
'nonContextSegmentMessage' => [
'enabled' => false,
'message' => '<string>'
],
'clarification' => [
'enabled' => false
],
'recommendations' => [
'enabled' => false
],
'neutrality' => [
'enabled' => false
],
'professionalConduct' => [
'enabled' => false
],
'legalFinancial' => [
'enabled' => false
],
'safeguarding' => [
'enabled' => false,
'email' => 'jsmith@example.com'
],
'feedback' => [
'enabled' => false
]
],
'additionalPolicyRules' => '<string>',
'additionalInformation' => '<string>',
'iceBreakerMessage' => '<string>',
'memory' => [
'allowAccess' => false,
'allowContribution' => false,
'miningGuidance' => '<string>'
],
'options' => [
'showSourceContent' => false,
'sourceDisplayStyle' => 'compact',
'sourceCardType' => 'segments',
'showSpeakers' => false,
'showFollowUpQuestions' => false,
'showCitations' => false,
'showQuickReplies' => true
],
'live' => true,
'showPromptLibrary' => true,
'contextUids' => [
'<string>'
],
'mcpserverUids' => [
'<string>'
],
'planUids' => [
'<string>'
],
'skillUids' => [
'<string>'
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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 := "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}"
payload := strings.NewReader("{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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("https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentName\": \"<string>\",\n \"agentPurpose\": \"<string>\",\n \"personality\": {\n \"preset\": \"friendly\",\n \"customText\": \"<string>\"\n },\n \"formatting\": {\n \"preset\": \"conversational\",\n \"customText\": \"<string>\"\n },\n \"policies\": {\n \"focusAndScope\": {\n \"enabled\": false,\n \"scope\": \"<string>\"\n },\n \"knowledgeLimits\": {\n \"enabled\": false,\n \"themeSpecificAllowance\": \"<string>\"\n },\n \"nonContextSegmentMessage\": {\n \"enabled\": false,\n \"message\": \"<string>\"\n },\n \"clarification\": {\n \"enabled\": false\n },\n \"recommendations\": {\n \"enabled\": false\n },\n \"neutrality\": {\n \"enabled\": false\n },\n \"professionalConduct\": {\n \"enabled\": false\n },\n \"legalFinancial\": {\n \"enabled\": false\n },\n \"safeguarding\": {\n \"enabled\": false,\n \"email\": \"jsmith@example.com\"\n },\n \"feedback\": {\n \"enabled\": false\n }\n },\n \"additionalPolicyRules\": \"<string>\",\n \"additionalInformation\": \"<string>\",\n \"iceBreakerMessage\": \"<string>\",\n \"memory\": {\n \"allowAccess\": false,\n \"allowContribution\": false,\n \"miningGuidance\": \"<string>\"\n },\n \"options\": {\n \"showSourceContent\": false,\n \"sourceDisplayStyle\": \"compact\",\n \"sourceCardType\": \"segments\",\n \"showSpeakers\": false,\n \"showFollowUpQuestions\": false,\n \"showCitations\": false,\n \"showQuickReplies\": true\n },\n \"live\": true,\n \"showPromptLibrary\": true,\n \"contextUids\": [\n \"<string>\"\n ],\n \"mcpserverUids\": [\n \"<string>\"\n ],\n \"planUids\": [\n \"<string>\"\n ],\n \"skillUids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"agentName": "<string>",
"agentPurpose": "<string>",
"personality": {
"preset": "friendly",
"customText": "<string>"
},
"formatting": {
"preset": "conversational",
"customText": "<string>"
},
"policies": {
"focusAndScope": {
"enabled": false,
"scope": "<string>"
},
"knowledgeLimits": {
"enabled": false,
"themeSpecificAllowance": "<string>"
},
"nonContextSegmentMessage": {
"enabled": false,
"message": "<string>"
},
"clarification": {
"enabled": false
},
"recommendations": {
"enabled": false
},
"neutrality": {
"enabled": false
},
"professionalConduct": {
"enabled": false
},
"legalFinancial": {
"enabled": false
},
"safeguarding": {
"enabled": false,
"email": "jsmith@example.com"
},
"feedback": {
"enabled": false
}
},
"additionalPolicyRules": "<string>",
"additionalInformation": "<string>",
"iceBreakerMessage": "<string>",
"memory": {
"allowAccess": false,
"allowContribution": false,
"miningGuidance": "<string>"
},
"options": {
"showSourceContent": false,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": false,
"showFollowUpQuestions": false,
"showCitations": false,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"<string>"
],
"mcpserverUids": [
"<string>"
],
"planUids": [
"<string>"
],
"skillUids": [
"<string>"
],
"tags": [
"<string>"
],
"externalTenantId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.Authorizations
Path Parameters
Your application's uid
1Unique ID of the agent
Body
Name of the agent
1 - 50Purpose of the agent
1 - 1000Agent personality configuration
Show child attributes
Show child attributes
Agent response formatting configuration
Show child attributes
Show child attributes
Agent policy configuration with 10 toggleable policies
Show child attributes
Show child attributes
Additional free-form policy rules
500Additional context information for the agent
65535Invisible instruction to prompt the agent to greet users in a specific way
1000Agent memory configuration. Note: Memory access must be enabled at the app level for these settings to take effect.
Show child attributes
Show child attributes
SDK3 display options. Only present for apps with SDK3 enabled (labsSDKV3Beta: true).
Show child attributes
Show child attributes
Agent is active and live for end users
Show prompt library in SDK UI
Array of existing context UIDs (max 30)
30Array of existing MCP server UIDs (max 5)
5Array of existing plan UIDs (max 20)
20Array of existing skill UIDs (max 20)
20Array of tags (max 10)
101 - 60Access control mode for this agent
openAccess, restrictedAccess Response
Successful update
Unique ID of the agent
Name of the agent
Purpose of the agent
Agent personality configuration
Show child attributes
Show child attributes
Agent response formatting configuration
Show child attributes
Show child attributes
Agent policy configuration with 10 toggleable policies
Show child attributes
Show child attributes
Additional free-form policy rules
Additional context information for the agent
Invisible instruction to prompt the agent to greet users in a specific way
Agent memory configuration. Note: Memory access must be enabled at the app level for these settings to take effect.
Show child attributes
Show child attributes
SDK3 display options. Only present for apps with SDK3 enabled (labsSDKV3Beta: true).
Show child attributes
Show child attributes
Agent is active and live for end users
Show prompt library in SDK UI
Array of context UIDs
Array of MCP server UIDs
Array of plan UIDs (max 20)
20Array of skill UIDs (max 20)
20Array of tags
Access control mode
openAccess, restrictedAccess External tenant identifier
Creation timestamp (ISO 8601)