Skip to content

Commit aa79b8d

Browse files
committed
api.ts
1 parent f70af18 commit aa79b8d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

site/src/api/api.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,25 @@ class ApiMethods {
21332133

21342134
return response.data;
21352135
};
2136+
getWorkspaceBuildParametersBulk = async (
2137+
buildIds: TypesGen.WorkspaceBuild["id"][],
2138+
): Promise<TypesGen.WorkspaceBuildParametersBulkResponse> => {
2139+
if (buildIds.length === 0) {
2140+
return {};
2141+
}
2142+
2143+
const response =
2144+
await this.axios.get<TypesGen.WorkspaceBuildParametersBulkResponse>(
2145+
"/api/v2/workspacebuilds/parameters",
2146+
{
2147+
params: {
2148+
build_ids: buildIds.join(","),
2149+
},
2150+
},
2151+
);
2152+
2153+
return response.data;
2154+
};
21362155

21372156
getLicenses = async (): Promise<GetLicensesResponse[]> => {
21382157
const response = await this.axios.get("/api/v2/licenses");

0 commit comments

Comments
 (0)