cloudflare
Version:
The official TypeScript library for the Cloudflare API
39 lines (33 loc) • 982 B
text/typescript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
import * as Core from '../../../core';
export class Relate extends APIResource {
/**
* Removes an event reference
*/
delete(
eventId: string,
params: RelateDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise<RelateDeleteResponse> {
const { account_id } = params;
return (
this._client.delete(
`/accounts/${account_id}/cloudforce-one/events/relate/${eventId}`,
options,
) as Core.APIPromise<{ result: RelateDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
}
export interface RelateDeleteResponse {
success: boolean;
}
export interface RelateDeleteParams {
/**
* Account ID
*/
account_id: number;
}
export declare namespace Relate {
export { type RelateDeleteResponse as RelateDeleteResponse, type RelateDeleteParams as RelateDeleteParams };
}