MCPcopy
hub / github.com/1Panel-dev/MaxKB / putResourceAuthorization

Function putResourceAuthorization

ui/src/api/workspace/resource-authorization.ts:45–52  ·  view source on GitHub ↗
(workspace_id, target, resource, body, loading)

Source from the content-addressed store, hash-verified

43 body: any,
44 loading?: Ref<boolean>,
45) => Promise<Result<any>> = (workspace_id, target, resource, body, loading) => {
46 return put(
47 `${prefix}/${workspace_id}/resource_user_permission/resource/${target}/resource/${resource}`,
48 body,
49 {},
50 loading,
51 )
52}
53
54export default {
55 getResourceAuthorization,

Callers

nothing calls this directly

Calls 1

putFunction · 0.90

Tested by

no test coverage detected