Required role: | superadmin |
DELETE | /superadmin/company/{CompanyId}/comments/{Id} | Delete a comment. |
---|
export enum CommentsType
{
NormalComment = 1,
CallBackPhoneComment = 2,
CallBackEmailComment = 3,
CallBackMeetingBookedComment = 4,
CallBackNotInterestedComment = 5,
}
export class CommentsTypeResponse
{
public Id: number;
public Name: string;
public Description: string;
public constructor(init?: Partial<CommentsTypeResponse>) { (Object as any).assign(this, init); }
}
export class CompanyCommentsResponse
{
// @ApiMember()
public CompanyId?: string;
// @ApiMember()
public Id: number;
// @ApiMember(IsRequired=true)
public Comment: string;
// @ApiMember(IsRequired=true)
public CommentTypeId: CommentsType;
// @ApiMember(IsRequired=true)
public CommentType: CommentsTypeResponse;
/** @description The updated date */
// @ApiMember(Description="The updated date")
public Updated: string;
/** @description The created date */
// @ApiMember(Description="The created date")
public Created: string;
/** @description The created by */
// @ApiMember(Description="The created by")
public CreatedBy: string;
public constructor(init?: Partial<CompanyCommentsResponse>) { (Object as any).assign(this, init); }
}
// @ApiResponse(Description="", StatusCode=400)
// @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)
export class DeleteCompanyCommentSuperAdminUser implements ICompany
{
/** @description Enter the companyId for the customer */
// @ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query")
public CompanyId: string;
// @ApiMember(IsRequired=true, ParameterType="query")
public Id: number;
public constructor(init?: Partial<DeleteCompanyCommentSuperAdminUser>) { (Object as any).assign(this, init); }
}
TypeScript DeleteCompanyCommentSuperAdminUser DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CompanyCommentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <Comment>String</Comment> <CommentType> <Description>String</Description> <Id>0</Id> <Name>String</Name> </CommentType> <CommentTypeId>NormalComment</CommentTypeId> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <Created>0001-01-01T00:00:00</Created> <CreatedBy>String</CreatedBy> <Id>0</Id> <Updated>0001-01-01T00:00:00</Updated> </CompanyCommentsResponse>