PATCH /agent
Updated Oct 1, 20261 minute read
Update the agent
Whatever is sent moves; everything else is read off the row, so saving a name can never put a switch back. The picture stays in the app.
Part of Agent.
Request body
application/json, required.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | |
personality | string | No | |
autoResolve | boolean | No | |
learnFromThreads | boolean | No | |
suggestKnowledge | boolean | No | |
nightlySweep | boolean | No | |
fileSignals | boolean | No | |
requireEmail | boolean | No | |
messagePreview | boolean | No |
Responses
| Status | Description |
|---|---|
200 | Done. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
403 | The token's person does not hold the role this needs. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | No |
Example response
{
"ok": true
}Example request
curl -X PATCH https://api.median.sh/v1/agent \
-H "Authorization: Bearer $BEARER_AUTH" \
-H "content-type: application/json" \
-d '{"fileSignals":false}'