v1
latestOpenAPI 3.1.02026-07-2658119246.0 KBPublic API
Update Agent
Update an agent with a JSON Patch document — an array of {op, path, value} operations applied to the agent, e.g. [{"op": "replace", "path": "/display_name", "value": "My agent"}]. Returns the updated agent.
patch/v2/agents/{agent_id}
Path parameters
agent_idstring uuid required
Web Search Agent ID, format wsa_<uuid>.
Request body
Response
Successful Response
Example response
{
"display_name": "Company News Tracker",
"id": "wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00",
"sources": {
"allow": [
{
"domains": [
"linkedin.com",
"crunchbase.com"
],
"title": "Professional networks"
}
],
"block": [
{
"domains": [
"linkedin.com",
"crunchbase.com"
],
"title": "Professional networks"
}
]
}
}