UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

35 lines (34 loc) 825 B
/** * 更新 iwiki 文档内容 * 使用 POST /v2/doc/save 接口,通过 force: true 强制保存 * @example * ```ts * await updateIwikiDoc({ * prefix: 'https://api.iwiki.woa.com', * id: 12345, * spacekey: 'my-space', * title: '我的文档', * body: '# Hello\n\n更新内容', * contenttype: 'MD', * paasId: 'xxx', * paasToken: 'yyy', * }); * ``` */ export declare function updateIwikiDoc({ prefix, id, spacekey, title, body, contenttype, otherData, paasId, paasToken, force, }: { prefix: string; id: number | string; spacekey: string; title?: string; body?: string; contenttype?: string; otherData?: any; paasId: string; paasToken: string; force?: boolean; }): Promise<{ code: string; msg: string; data: any; request_id: string; }>;