Update a user-owned persona.
PATCH
/api/advisor/personas/{id}
const url = 'https://api.tradr.cloud/api/advisor/personas/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"description":"example","name":"example","systemPrompt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.tradr.cloud/api/advisor/personas/example \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "name": "example", "systemPrompt": "example" }'Any subset of { name, description, systemPrompt }. Rejected with 403 for built-in personas. 404 if not owned.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
description
string
name
string
systemPrompt
string
Examplegenerated
{ "description": "example", "name": "example", "systemPrompt": "example"}Responses
Section titled “Responses”The updated persona.
Built-in personas cannot be edited.
Persona not found (or not owned).