Skip to content

Agent panels and chat

Update a panel

Rename a panel or move it.

PATCH/v1/monitors/{monitor_id}/agent/panels/{panel_id}

Send your API key as Authorization: Bearer. See Authentication. How each option works: Monitors.

Path parameters

monitor_idstring
The ID of a monitor that has an agent.
panel_idstring
The ID of the panel. See List panels.

Request body

titlestringat most 80 characters
A new title.
orderinteger0 to 10000
A new place in the list.

Response

200

idstring
The ID of the panel.
titlestring
The panel's title.
kindstring
What the panel shows, such as a table or a chart.
recipeobject
How the agent computes the panel.
promptstring or null
The chat message that made the panel, or null.
orderinteger
Its place in the list.
statusstring
The state of the panel's latest computation.
errorstring or null
Why the latest computation failed, or null.
versionobject or null
Its latest content, or null until it is first computed.

Errors

StatusCodeWhen
400invalid_requestThe title is blank.
401unauthorizedThe API key is missing or not valid.
403forbiddenThe API key cannot read monitors (a GET) or change them (the other methods).
404not_foundThe monitor, its agent or the panel is not in your key's project.
409monitor_endedThe monitor has ended. What the agent found stays readable, but nothing can change.
422invalid_requestA parameter or the body is not valid. error.param names it.
429rate_limitedYour key or account sent too many requests. Wait for the seconds in Retry-After, then try again.

What each error means and what to do: Errors.

Was this page helpful?