Skip to main content
Changes an integration. Only the fields you send change; null is rejected. Omit credentials to keep them; send only a new secret to rotate it. The bot’s app identifier cannot change (422). New DingTalk, Feishu and Slack credentials are verified before saving, and the status returns to pending until the new connection is up. Changing a project reference needs the same project access as Create IM Integration.
Permission required: workspace:integration_manage on workspace_id
  • When you set read_write_project_id: project:mem_add on read_write_project_id
  • When you set read_only_project_ids: project:mem_search on read_only_project_ids

Path Parameters

string
required
Identifier of the integration

Headers

string
Optional. Retrying with the same value replays the first result. Credential values are not compared.

Request Body

string
Switch the answering agent. Ongoing IM conversations start over with the new agent; sending the current agent_id changes nothing.
object
Write-only. Omit to keep the stored credentials. Send only the values that change: a secret can be rotated alone. The app identifier (appKey / appId / botId, or the Slack team and bot user) cannot change — delete and recreate the integration to connect a different bot. DingTalk, Feishu and Slack credentials are verified with the platform before saving.
integer
Maximum messages handled per day; 0 = unlimited
array
Replace the datasets. [] removes them.
boolean
Connect (true) or disconnect (false) the bot
string
New display name
array
Replace the read-only projects. [] removes them.
string
New project for extracted memories
object
Replace the channel-specific settings

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.