DELETE | /references/{CompanyId}/{OwnerId}/{ReferenceType} | Delete a reference with the reference type | Delete a reference |
---|
export class ReferenceQueryResponse
{
public CompanyId: string;
public Id: string;
public OwnerId: string;
public ReferenceType: string;
public ReferenceTypeId: number;
public ExternalData: string;
public Updated: string;
public Created: string;
public CreatedBy: string;
public UpdatedBy: string;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<ReferenceQueryResponse>) { (Object as any).assign(this, init); }
}
export class DeleteReferenceWithReferenceType
{
/** @description The company id */
// @ApiMember(Description="The company id", IsRequired=true, ParameterType="path")
public CompanyId: string;
/** @description 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 OwnerId: string;
/** @description Reference type of the reference */
// @ApiMember(Description="Reference type of the reference", ParameterType="path")
public ReferenceType: string;
public constructor(init?: Partial<DeleteReferenceWithReferenceType>) { (Object as any).assign(this, init); }
}
TypeScript DeleteReferenceWithReferenceType DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK Content-Type: application/json 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"}}}