智能体

更新智能体的名称、描述和配置

put/agents/{id}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/agents/{id}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

智能体ID

Request body

avatarstring

Avatar travels as a pointer so an omitted field can be told apart from an explicit clear: nil keeps the stored avatar, a pointer to "" wipes it. As a plain string the two cases were indistinguishable, so a caller that PUT only a config silently zeroed the avatar and still got a 200.

descriptionstring
namestring

Response

更新后的智能体

successboolean

Example response

{
  "success": true
}

Changes