UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

18 lines 824 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../../resource.mjs"; export class Entries extends APIResource { /** * This is used for multi-column EDMv2 datasets. The EDMv2 format can only be * created in the Cloudflare dashboard. */ create(datasetId, version, entryId, params, options) { const { account_id, body } = params; return this._client.post(`/accounts/${account_id}/dlp/datasets/${datasetId}/versions/${version}/entries/${entryId}`, { body: body, ...options, headers: { 'Content-Type': 'application/octet-stream', ...options?.headers }, __binaryRequest: true, })._thenUnwrap((obj) => obj.result); } } //# sourceMappingURL=entries.mjs.map