| Requires any of the roles: | bookingsupplier-administrator-write, superadmin, SuperAdminVisma |
| DELETE | /references/{CompanyId}/{Id} | Delete a reference | 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); }
}
// @ValidateRequest(Validator="IsAuthenticated")
export class DeleteReference implements ICompany
{
/** @description The company id, if empty will use the company id for the user you are logged in with. */
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public CompanyId?: string;
/** @description Id of the reference */
// @ApiMember(Description="Id of the reference", IsRequired=true, ParameterType="path")
public Id: string;
public constructor(init?: Partial<DeleteReference>) { (Object as any).assign(this, init); }
}
TypeScript DeleteReference DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /references/{CompanyId}/{Id} HTTP/1.1
Host: testapi.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
}
}
}