Files
artcraft/packages/components/src/api/weights/UpdateWeight.ts
T

20 lines
547 B
TypeScript

import MakeRequest from "../MakeRequest";
export interface UpdateWeightRequest {
cover_image_media_file_token?: string;
description_markdown: string,
description_rendered_html: string,
title: string,
visibility: string,
weight_category: string,
weight_type: string
}
export interface UpdateWeightResponse {
success: boolean
}
export const UpdateWeight = MakeRequest<string, UpdateWeightRequest, UpdateWeightResponse,{}>({
method: "POST",
routingFunction: (weight_token: string) => `/v1/weights/weight/${ weight_token }`,
});