We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a825e82 commit 7782006Copy full SHA for 7782006
apps/web-v2/src/hooks/use-triggers.tsx
@@ -188,14 +188,14 @@ export function useTriggers() {
188
// For RESTful API, we need to update each registration individually
189
for (const triggerId of args.selectedTriggerIds) {
190
const triggerApiUrl = constructTriggerUrl(
191
- `/api/triggers/registrations/${triggerId}/agents`,
+ `/api/triggers/registrations/${triggerId}/agents/${args.agentId}`,
192
);
193
if (!triggerApiUrl) {
194
return false;
195
}
196
197
const response = await fetch(triggerApiUrl, {
198
- method: "PUT",
+ method: "POST",
199
headers: {
200
Authorization: `Bearer ${accessToken}`,
201
"Content-Type": "application/json",
0 commit comments