diff --git a/packages/components/src/api/weights/DeleteWeight.ts b/packages/components/src/api/weights/DeleteWeight.ts new file mode 100644 index 0000000000..1a1e33789d --- /dev/null +++ b/packages/components/src/api/weights/DeleteWeight.ts @@ -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({ + method: "POST", + routingFunction: (weight_token: string) => `/v1/weights/weight/${ weight_token }`, +}); \ No newline at end of file