Median

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.

FieldTypeRequiredDescription
namestringNo
personalitystringNo
autoResolvebooleanNo
learnFromThreadsbooleanNo
suggestKnowledgebooleanNo
nightlySweepbooleanNo
fileSignalsbooleanNo
requireEmailbooleanNo
messagePreviewbooleanNo

Responses

StatusDescription
200Done.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
okbooleanNo

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}'

Still need help?

    Esc