Rename, toggle Show, or reorder a resource
const url = 'https://api.somebodyai.co/api/v1/agents/example/resources/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","showable":true,"order":1,"display":{"mode":"talk","closeButton":true,"fill":true,"placement":"auto","title":"example","description":"example","access":"agent","download":true}}'};
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.somebodyai.co/api/v1/agents/example/resources/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "showable": true, "order": 1, "display": { "mode": "talk", "closeButton": true, "fill": true, "placement": "auto", "title": "example", "description": "example", "access": "agent", "download": true } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
object
Talk: agent keeps speaking and may close it; reference: stays until the user closes it; gate: agent pauses until the user presses Continue
Who can open it when showable. agent: only the agent shows it; user: in the user's materials folder from the start; afterShown: joins the folder once the agent has shown it
The user may download a copy. Never applies to web links.
Responses
Section titled “Responses”Updated
object
object
Talk: agent keeps speaking and may close it; reference: stays until the user closes it; gate: agent pauses until the user presses Continue
Who can open it when showable. agent: only the agent shows it; user: in the user's materials folder from the start; afterShown: joins the folder once the agent has shown it
The user may download a copy. Never applies to web links.
Example
{ "kind": "pdf", "status": "processing", "display": { "mode": "talk", "placement": "auto", "access": "agent" }}Bad request - validation failed
object
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}Unauthorized - missing or invalid auth
object
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}Resource not found
object
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}