feat: allow updating existing CV branches

This commit is contained in:
2026-04-04 11:29:46 +02:00
parent 15d5ef6ac6
commit c9914191d8
6 changed files with 137 additions and 4 deletions

View File

@@ -133,6 +133,17 @@ export async function createBranch(
});
}
export async function appendPatches(
versionId: string,
patches: Record<string, unknown>[],
): Promise<Version> {
return req<Version>(`/api/v1/versions/${versionId}/patches`, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ patches }),
});
}
export async function createSubmission(
versionId: string,
companyName: string,