Required role: | superadmin |
DELETE | /superadmin/company/{CompanyId}/comments/{Id} | Delete a comment. |
---|
"use strict";
/** @typedef {number} */
export var CommentsType;
(function (CommentsType) {
CommentsType[CommentsType["NormalComment"] = 1] = "NormalComment"
CommentsType[CommentsType["CallBackPhoneComment"] = 2] = "CallBackPhoneComment"
CommentsType[CommentsType["CallBackEmailComment"] = 3] = "CallBackEmailComment"
CommentsType[CommentsType["CallBackMeetingBookedComment"] = 4] = "CallBackMeetingBookedComment"
CommentsType[CommentsType["CallBackNotInterestedComment"] = 5] = "CallBackNotInterestedComment"
})(CommentsType || (CommentsType = {}));
export class CommentsTypeResponse {
/** @param {{Id?:number,Name?:string,Description?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Description;
}
export class CompanyCommentsResponse {
/** @param {{CompanyId?:string,Id?:number,Comment?:string,CommentTypeId?:CommentsType,CommentType?:CommentsTypeResponse,Updated?:string,Created?:string,CreatedBy?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
CompanyId;
/** @type {number} */
Id;
/** @type {string} */
Comment;
/** @type {CommentsType} */
CommentTypeId;
/** @type {CommentsTypeResponse} */
CommentType;
/**
* @type {string}
* @description The updated date */
Updated;
/**
* @type {string}
* @description The created date */
Created;
/**
* @type {string}
* @description The created by */
CreatedBy;
}
export class DeleteCompanyCommentSuperAdminUser {
/** @param {{CompanyId?:string,Id?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Enter the companyId for the customer */
CompanyId;
/** @type {number} */
Id;
}
JavaScript DeleteCompanyCommentSuperAdminUser DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /superadmin/company/{CompanyId}/comments/{Id} HTTP/1.1 Host: api.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"CompanyId":"00000000-0000-0000-0000-000000000000","Id":0,"Comment":"String","CommentTypeId":"NormalComment","CommentType":{"Id":0,"Name":"String","Description":"String"},"CreatedBy":"String"}