UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

17 lines 638 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class Advertisements extends APIResource { /** * Update advertisement for rule. */ edit(ruleId, params, options) { const { account_id, body } = params; return this._client.patch(`/accounts/${account_id}/mnm/rules/${ruleId}/advertisement`, { body: body, ...options, })._thenUnwrap((obj) => obj.result); } } (function (Advertisements) { })(Advertisements || (Advertisements = {})); //# sourceMappingURL=advertisements.mjs.map