Mailly文档

Update an agent profile

PATCH
/agents/{id}

Updates only the fields provided; pass address_id null to unbind, summary_prompt null to go back to the default summary prompt.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Mailly API key(Authorization: Bearer )

Path Parameters

id*string

agent ID

Request Body

application/json
  1. body
name?string
persona_prompt?string
mode?string
address_id?string|null
allowed_senders?array<string>|null
skills?array<>
Itemsitems <= 20
summary_prompt?|

Summary prompt for evaluations, up to 4000 characters; null, blank, or a built-in default follows the workspace language

[key: string]?unknown

Response Body

Updated

application/json
  1. response
success*boolean
[key: string]?unknown
curl -X PATCH 'https://api.mailly.site/agents/string' \  -H 'Content-Type: application/json' \  -d '{  "property1": null,  "property2": null}'
{  "success": true,  "property1": null,  "property2": null}