| DELETE | /references/{CompanyId}/{OwnerId}/{ReferenceType} | Delete a reference with the reference type | Delete a reference | 
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
    Namespace BokaMera.API.ServiceModel.Dtos
        Public Partial Class DeleteReferenceWithReferenceType
            '''<Summary>
            '''The company id
            '''</Summary>
            <ApiMember(Description:="The company id", IsRequired:=true, ParameterType:="path")>
            Public Overridable Property CompanyId As Guid
            '''<Summary>
            '''Internal Id of the reference. Example could be the Booking Id
            '''</Summary>
            <ApiMember(Description:="Internal Id of the reference. Example could be the Booking Id", ParameterType:="path")>
            Public Overridable Property OwnerId As Guid
            '''<Summary>
            '''Reference type of the reference
            '''</Summary>
            <ApiMember(Description:="Reference type of the reference", ParameterType:="path")>
            Public Overridable Property ReferenceType As String
        End Class
        Public Partial Class ReferenceQueryResponse
            Public Overridable Property CompanyId As Guid
            Public Overridable Property Id As Guid
            Public Overridable Property OwnerId As Guid
            Public Overridable Property ReferenceType As String
            Public Overridable Property ReferenceTypeId As Integer
            Public Overridable Property ExternalData As String
            Public Overridable Property Updated As Date
            Public Overridable Property Created As Date
            Public Overridable Property CreatedBy As String
            Public Overridable Property UpdatedBy As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace
VB.NET DeleteReferenceWithReferenceType DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /references/{CompanyId}/{OwnerId}/{ReferenceType} HTTP/1.1 
Host: api.bookmore.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ReferenceType":"String","ReferenceTypeId":0,"ExternalData":"String","CreatedBy":"String","UpdatedBy":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}