mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 18:42:10 +00:00
20 lines
547 B
TypeScript
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 }`,
|
|
}); |