This commit is contained in:
Timothy Jaeryang Baek
2026-02-10 15:30:16 -06:00
parent 0044902c08
commit c259c87806
4 changed files with 17 additions and 13 deletions
+3 -2
View File
@@ -331,7 +331,8 @@ export const updatePromptMetadata = async (
promptId: string,
name: string,
command: string,
tags: string[] = []
tags: string[] = [],
accessGrants: any[] | null = null
) => {
let error = null;
@@ -342,7 +343,7 @@ export const updatePromptMetadata = async (
'Content-Type': 'application/json',
authorization: `Bearer ${token}`
},
body: JSON.stringify({ name, command, tags })
body: JSON.stringify({ name, command, tags, access_grants: accessGrants })
})
.then(async (res) => {
if (!res.ok) throw await res.json();