BokaMera.API.Host

<back to all web services

DeleteReferenceWithReferenceType

The following routes are available for this service:
DELETE/references/{CompanyId}/{OwnerId}/{ReferenceType}Delete a reference with the reference typeDelete 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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}