True PATCH Semantics for Auth Config Updates
Version Information
TypeScript/JavaScript
- Package:
@composio/coreand provider packages - Version:
0.5.1+
Python
- Package:
composio-coreand provider packages - Version:
0.10.7+
The
PATCH /api/v3/auth_configs/{id} endpoint now implements proper partial update semantics. Previously, omitting fields would clear them (behaving like PUT). Now, omitted fields are preserved—only explicitly provided fields are modified.
What Changed
Merge Behavior: The
credentials object is merged—send only the fields you want to change, and existing fields are preserved.New Capabilities
Rotate a Single Credential Field
Update justclient_secret without resending client_id or other fields:
- Python
- TypeScript
Update Tool Restrictions Without Touching Credentials
Previously, this would fail becausecredentials was required. Now it works:
- Python
- TypeScript
Migration Guide
Am I Affected?
Yes, if your code relied on omitting fields to clear them. No, if you always send complete payloads or only use PATCH to update specific fields.How to Clear Fields Explicitly
- Python
- TypeScript