cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.48 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../core/resource.mjs";
import { path } from "../../internal/utils/path.mjs";
export var BaseMiscategorizations = /* @__PURE__ */ (() => {
class BaseMiscategorizations extends APIResource {
/**
* Allows you to submit requests to change a domain’s category.
*
* Requests that include category `169` (New Domains) or category `177` (Newly
* Seen) in any of `content_adds`, `content_removes`, `security_adds`, or
* `security_removes` will be rejected with a `400 Bad Request`. These categories
* are automatically managed and fall off 30 days after they are applied.
*
* @example
* ```ts
* const miscategorization =
* await client.intel.miscategorizations.create({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
create(params, options) {
const { account_id, ...body } = params;
return this._client.post(path `/accounts/${account_id}/intel/miscategorization`, { body, ...options });
}
}
BaseMiscategorizations._key = Object.freeze([
'intel',
'miscategorizations',
]);
return BaseMiscategorizations;
})();
export class Miscategorizations extends BaseMiscategorizations {
}
//# sourceMappingURL=miscategorizations.mjs.map