Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Updates the agent’s display name.
cURL
curl --request PUT \ --url https://app.mandate.md/api/agents/{agentId} \ --header 'Content-Type: application/json' \ --cookie laravel_session= \ --data ' { "name": "Updated Bot Name" } '
const options = { method: 'PUT', headers: {cookie: 'laravel_session=', 'Content-Type': 'application/json'}, body: JSON.stringify({name: 'Updated Bot Name'}) }; fetch('https://app.mandate.md/api/agents/{agentId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://app.mandate.md/api/agents/{agentId}" payload = { "name": "Updated Bot Name" } headers = { "cookie": "laravel_session=", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.text)
{ "updated": true, "name": "Updated Bot Name" }
{ "error": "<string>" }
Laravel Sanctum cookie-based session authentication. Obtained via GitHub OAuth login on the dashboard.
100
Agent updated.
true
Was this page helpful?