This guide shows you how to manage connectors attached to an agent using the connector sub-resource endpoints. You will learn about the full connector CRUD lifecycle and JSON Merge Patch semantics.
Prerequisites
Two ways to manage connectors
You can manage connectors in two ways:
- Via the agent’s
connectors array: When you PATCH an agent, the connectors array is replaced wholesale. This is good for bulk changes.
- Via the connector sub-resource: Attach, update, remove, or list individual connectors without rewriting the full agent. This is good for incremental changes.
This guide focuses on the sub-resource approach.
List connectors
The response is a JSON object with a connectors array, each discriminated by type:
Attach a connector
Each connector type has different required fields. See Connectors for the full schema of each type.
Attach an MCP connector
Attach a schema connector
Get a connector
Update a connector
The connector PATCH endpoint is in private preview and returns HTTP 501. To change a connector, remove it and attach a new one.
Use JSON Merge Patch to update a connector. The type field is immutable:
Remove a connector
Next steps