Agents
Update an Agent
Update an Agent. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
PATCH
/
api
/
v1
/
agents
/
{agentId}
Update an Agent
curl --request PATCH \
--url https://api.revoengine.com/api/v1/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ops escalation coordinator"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Ops escalation coordinator'})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}"
payload = { "name": "Ops escalation coordinator" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
200
⌘I
Update an Agent
curl --request PATCH \
--url https://api.revoengine.com/api/v1/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ops escalation coordinator"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Ops escalation coordinator'})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}"
payload = { "name": "Ops escalation coordinator" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)
