MCPcopy Create free account
hub / github.com/Microck/opencode-studio / savePreset

Function savePreset

client-next/src/lib/api.ts:684–687  ·  view source on GitHub ↗
(name: string, description: string, config: PresetConfig)

Source from the content-addressed store, hash-verified

682}
683
684export async function savePreset(name: string, description: string, config: PresetConfig): Promise<Preset> {
685 const { data } = await api.post<Preset>('/presets', { name, description, config });
686 return data;
687}
688
689export async function updatePreset(id: string, name: string, description: string, config: PresetConfig): Promise<Preset> {
690 const { data } = await api.put<Preset>(`/presets/${id}`, { name, description, config });

Callers 1

handleCreateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected