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 .xml suffix or ?format=xml

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