BokaMera.API.Host

<back to all web services

DeleteCompanyCommentSuperAdminUser

Requires Authentication
Required role:superadmin
The following routes are available for this service:
DELETE/superadmin/company/{CompanyId}/comments/{Id}Delete a comment.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BokaMera.API.ServiceModel.Dtos;
using BokaMera.API.ServiceModel.Enums;

namespace BokaMera.API.ServiceModel.Dtos
{
    public partial class CommentsTypeResponse
    {
        public virtual int Id { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
    }

    public partial class CompanyCommentsResponse
    {
        [ApiMember]
        public virtual Guid? CompanyId { get; set; }

        [ApiMember]
        public virtual int Id { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual string Comment { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual CommentsType CommentTypeId { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual CommentsTypeResponse CommentType { get; set; }

        ///<summary>
        ///The updated date
        ///</summary>
        [ApiMember(Description="The updated date")]
        public virtual DateTime Updated { get; set; }

        ///<summary>
        ///The created date
        ///</summary>
        [ApiMember(Description="The created date")]
        public virtual DateTime Created { get; set; }

        ///<summary>
        ///The created by
        ///</summary>
        [ApiMember(Description="The created by")]
        public virtual string CreatedBy { get; set; }
    }

    [ApiResponse(Description="", StatusCode=400)]
    [ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)]
    public partial class DeleteCompanyCommentSuperAdminUser
        : ICompany
    {
        ///<summary>
        ///Enter the companyId for the customer
        ///</summary>
        [ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query")]
        public virtual Guid? CompanyId { get; set; }

        [ApiMember(IsRequired=true, ParameterType="query")]
        public virtual int Id { get; set; }
    }

}

namespace BokaMera.API.ServiceModel.Enums
{
    public enum CommentsType
    {
        NormalComment = 1,
        CallBackPhoneComment = 2,
        CallBackEmailComment = 3,
        CallBackMeetingBookedComment = 4,
        CallBackNotInterestedComment = 5,
    }

}

C# DeleteCompanyCommentSuperAdminUser DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + 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"}