added delete weight api config

This commit is contained in:
Victor committed 2023-12-24 13:50:53 -05:00
1 parent 3ad2d2005b
commit 909602f78e
1 file changed
+19
@@ -0,0 +1,19 @@
import MakeRequest from "../MakeRequest";
export interface DeleteWeightRequest {
description_markdown: string,
description_rendered_html: string,
title: string,
visibility: string,
weight_category: string,
weight_type: string
}
export interface DeleteWeightResponse {
success: boolean
}
export const DeleteWeight = MakeRequest<string, DeleteWeightRequest, DeleteWeightResponse,{}>({
method: "POST",
routingFunction: (weight_token: string) => `/v1/weights/weight/${ weight_token }`,
});