DELETE | /references/{CompanyId}/{OwnerId}/{ReferenceType} | Delete a reference with the reference type | Delete a reference |
---|
import Foundation
import ServiceStack
public class DeleteReferenceWithReferenceType : Codable
{
/**
* The company id
*/
// @ApiMember(Description="The company id", IsRequired=true, ParameterType="path")
public var companyId:String
/**
* Internal Id of the reference. Example could be the Booking Id
*/
// @ApiMember(Description="Internal Id of the reference. Example could be the Booking Id", ParameterType="path")
public var ownerId:String
/**
* Reference type of the reference
*/
// @ApiMember(Description="Reference type of the reference", ParameterType="path")
public var referenceType:String
required public init(){}
}
public class ReferenceQueryResponse : Codable
{
public var companyId:String
public var id:String
public var ownerId:String
public var referenceType:String
public var referenceTypeId:Int
public var externalData:String
public var updated:Date
public var created:Date
public var createdBy:String
public var updatedBy:String
public var responseStatus:ResponseStatus
required public init(){}
}
Swift DeleteReferenceWithReferenceType DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl 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"}}}