Required role: | superadmin |
DELETE | /superadmin/company/{CompanyId}/comments/{Id} | Delete a comment. |
---|
namespace BokaMera.API.ServiceModel.Dtos
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type CommentsType =
| NormalComment = 1
| CallBackPhoneComment = 2
| CallBackEmailComment = 3
| CallBackMeetingBookedComment = 4
| CallBackNotInterestedComment = 5
[<AllowNullLiteral>]
type CommentsTypeResponse() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
[<AllowNullLiteral>]
type CompanyCommentsResponse() =
[<ApiMember>]
member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set
[<ApiMember>]
member val Id:Int32 = new Int32() with get,set
[<ApiMember(IsRequired=true)>]
member val Comment:String = null with get,set
[<ApiMember(IsRequired=true)>]
member val CommentTypeId:CommentsType = new CommentsType() with get,set
[<ApiMember(IsRequired=true)>]
member val CommentType:CommentsTypeResponse = null with get,set
///<summary>
///The updated date
///</summary>
[<ApiMember(Description="The updated date")>]
member val Updated:DateTime = new DateTime() with get,set
///<summary>
///The created date
///</summary>
[<ApiMember(Description="The created date")>]
member val Created:DateTime = new DateTime() with get,set
///<summary>
///The created by
///</summary>
[<ApiMember(Description="The created by")>]
member val CreatedBy:String = null with get,set
[<ApiResponse(Description="", StatusCode=400)>]
[<ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)>]
[<AllowNullLiteral>]
type DeleteCompanyCommentSuperAdminUser() =
///<summary>
///Enter the companyId for the customer
///</summary>
[<ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query")>]
member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set
[<ApiMember(IsRequired=true, ParameterType="query")>]
member val Id:Int32 = new Int32() with get,set
F# 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>