Skip to content

fix: use PATCH instead of PUT for update_agent#4

Merged
chuckmeyer merged 2 commits into
mainfrom
fix/update-agent-patch-method
May 19, 2026
Merged

fix: use PATCH instead of PUT for update_agent#4
chuckmeyer merged 2 commits into
mainfrom
fix/update-agent-patch-method

Conversation

@chuckmeyer
Copy link
Copy Markdown
Contributor

  • update_agent was sending PUT /agents/{id} — the API requires PATCH, which returns 405
  • Add test_update_agent to cover the method and return value (no test existed before)

Found while adding a client_side tool to an existing agent via algolia-tcg-search.

chuckmeyer and others added 2 commits May 19, 2026 18:14
The Agent Studio API requires PATCH on /agents/{id}, not PUT.
PUT returns 405 Method Not Allowed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers the bug where PUT was used instead of PATCH, causing 405 from
the Agent Studio API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chuckmeyer chuckmeyer merged commit a0fbda8 into main May 19, 2026
3 checks passed
@chuckmeyer chuckmeyer deleted the fix/update-agent-patch-method branch May 19, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant