Function: createComment()
createComment(
client,props):Promise<{id:number;text:string;likeCount:number;createdAt:string;moderatedAt:string|null;moderationReason:string|null;createdByUserId:number;createdByName:string;likeId:number|null; }>
Parameters
client
The API client instance
props
The request properties
params
{ orgName: string; projectName: string; assetName: string; } = createCommentParamsSchema
Path parameters (orgName, projectName, assetName)
params.orgName
string = orgNameSchema
params.projectName
string = projectNameSchema
params.assetName
string = assetNameSchema
body
{ text: string; } = createCommentBodySchema
Request body with comment text
body.text
string = ...
Returns
Promise<{ id: number; text: string; likeCount: number; createdAt: string; moderatedAt: string | null; moderationReason: string | null; createdByUserId: number; createdByName: string; likeId: number | null; }>
Promise resolving to the created comment
Operation Id
create-comment