async createCrawlerCrawlRule()

in packages/enterprise-search/src/api/app/api.ts [250:263]


  async createCrawlerCrawlRule (this: That, params: T.CreateCrawlerCrawlRuleRequest, options?: TransportRequestOptions): Promise<T.CreateCrawlerCrawlRuleResponse> {
    const {
      engine_name,
      domain_id,
      body,
      ...querystring
    } = params ?? {}
    return await this.transport.request<T.CreateCrawlerCrawlRuleResponse>({
      method: 'POST',
      path: `/api/as/v1/engines/${engine_name}/crawler/domains/${domain_id}/crawl_rules`,
      querystring,
      body: body
    }, options)
  }