> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fuseai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Re-crawl one of the hub's websites

> Re-crawls one of the hub's websites and regenerates the knowledge pages built from it (202). Pass a URL that is already one of the hub's websites — from `websites[].url` in the hub detail; the match ignores scheme and `www.`, and a URL the hub does not have answers 404 `KNOWLEDGE_HUB_WEBSITE_NOT_FOUND`. Only the URL you pass is re-crawled: subpages the crawler already discovered from it are NOT re-crawled, and the pages built from them keep their existing text. When the website was added with `includeSubPages`, a refresh still picks up subpages that are new since the last crawl. To refresh a subpage, pass that subpage's own URL — every discovered subpage is itself one of the hub's `websites`. The hub flips to `status` `processing` at once; poll `GET /business/knowledge-hubs/{hubId}` until it is `complete`. Only the hub's owner can refresh, at most 3 times per minute and 25 per day on top of the shared rate bucket. Hubs built before knowledge pages cannot be refreshed (409 `KNOWLEDGE_HUB_PAGES_UNAVAILABLE`).

Errors:
- `404` `KNOWLEDGE_HUB_NOT_FOUND` — No hub with that id, it was deleted, or it belongs to another team.
- `404` `KNOWLEDGE_HUB_WEBSITE_NOT_FOUND` — `url` is not one of the hub's websites.
- `409` `KNOWLEDGE_HUB_NOT_READY` — The hub is still building, or is already processing another change.
- `409` `KNOWLEDGE_HUB_PAGES_UNAVAILABLE` — The hub predates knowledge pages and cannot be refreshed.
- `403` `KNOWLEDGE_HUB_OWNER_ONLY` — You can read this teammate's hub but only its owner can refresh it.
- `422` `VALIDATION_FAILED` — url missing or outside 4-2048 characters.
- `500` `UNEXPECTED_ERROR` — The refresh workflow could not be enqueued; the hub is left complete — retry.
- `429` `RATE_LIMITED` — The shared campaigns bucket was exceeded, or more than 3 refreshes in a minute / 25 in a day.

Requires one of the following token scopes: campaigns.



## OpenAPI

````yaml /openapi.json post /business/knowledge-hubs/{hubId}/refresh
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: Account
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Contacts
paths:
  /business/knowledge-hubs/{hubId}/refresh:
    post:
      tags:
        - Knowledge hubs
      summary: Re-crawl one of the hub's websites
      description: >-
        Re-crawls one of the hub's websites and regenerates the knowledge pages
        built from it (202). Pass a URL that is already one of the hub's
        websites — from `websites[].url` in the hub detail; the match ignores
        scheme and `www.`, and a URL the hub does not have answers 404
        `KNOWLEDGE_HUB_WEBSITE_NOT_FOUND`. Only the URL you pass is re-crawled:
        subpages the crawler already discovered from it are NOT re-crawled, and
        the pages built from them keep their existing text. When the website was
        added with `includeSubPages`, a refresh still picks up subpages that are
        new since the last crawl. To refresh a subpage, pass that subpage's own
        URL — every discovered subpage is itself one of the hub's `websites`.
        The hub flips to `status` `processing` at once; poll `GET
        /business/knowledge-hubs/{hubId}` until it is `complete`. Only the hub's
        owner can refresh, at most 3 times per minute and 25 per day on top of
        the shared rate bucket. Hubs built before knowledge pages cannot be
        refreshed (409 `KNOWLEDGE_HUB_PAGES_UNAVAILABLE`).


        Errors:

        - `404` `KNOWLEDGE_HUB_NOT_FOUND` — No hub with that id, it was deleted,
        or it belongs to another team.

        - `404` `KNOWLEDGE_HUB_WEBSITE_NOT_FOUND` — `url` is not one of the
        hub's websites.

        - `409` `KNOWLEDGE_HUB_NOT_READY` — The hub is still building, or is
        already processing another change.

        - `409` `KNOWLEDGE_HUB_PAGES_UNAVAILABLE` — The hub predates knowledge
        pages and cannot be refreshed.

        - `403` `KNOWLEDGE_HUB_OWNER_ONLY` — You can read this teammate's hub
        but only its owner can refresh it.

        - `422` `VALIDATION_FAILED` — url missing or outside 4-2048 characters.

        - `500` `UNEXPECTED_ERROR` — The refresh workflow could not be enqueued;
        the hub is left complete — retry.

        - `429` `RATE_LIMITED` — The shared campaigns bucket was exceeded, or
        more than 3 refreshes in a minute / 25 in a day.


        Requires one of the following token scopes: campaigns.
      operationId: refreshKnowledgeHubWebsite
      parameters:
        - name: hubId
          in: path
          required: true
          description: >-
            24-character hex id of the knowledge hub (from GET
            /business/knowledge-hubs).
          schema:
            type: string
            description: >-
              24-character hex id of the knowledge hub (from GET
              /business/knowledge-hubs).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  minLength: 4
                  maxLength: 2048
                  description: >-
                    One of the hub's website URLs, as listed in the hub detail
                    (matched ignoring scheme and www); a URL that is not part of
                    the hub answers 404.
              required:
                - url
      responses:
        '202':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                required:
                  - knowledgeHub
                properties:
                  knowledgeHub:
                    type: object
                    required:
                      - id
                      - status
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                        enum:
                          - processing
                        description: >-
                          The hub is processing the refresh; poll the hub detail
                          until it is complete.
              example:
                knowledgeHub:
                  id: 68a1f8509c41d20014b3ee41
                  status: processing
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````