Use POST method for approval style preferences endpoint
This commit is contained in:
1 parent
883690e128
commit
112473a2b7
1 file changed
+2
-4
@@ -274,10 +274,8 @@ export async function updateApprovalStylePreferences(
|
||||
params: Record<string, unknown>,
|
||||
endpoint = "api/v1/agent/ai-approval/config"
|
||||
): Promise<ApprovalStylePreferences> {
|
||||
return unwrap(
|
||||
await client.patch(endpoint, { json: params }),
|
||||
ApprovalStylePreferencesSchema
|
||||
);
|
||||
await client.post(endpoint, { json: params });
|
||||
return getApprovalStylePreferences(client, endpoint);
|
||||
}
|
||||
|
||||
export type WebhookMutationPreview = {
|
||||
|
||||
Reference in new issue
Block a user