hubPublish

export a hub project

Changed on

Requires the caller to be a workspace admin. Forwards the request to the configured Hub and returns the Hub's status code and raw response body. The folder scope is only needed to re-export the caller's own draft; approved projects are public, so it is optional here.

get/w/{workspace}/hub/projects/{slug}/export

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/hub/projects/{slug}/export
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required
slugstring required

hub project slug (3-50 chars, lowercase alphanumeric and hyphens, no leading/trailing hyphen)

Query parameters

folderstring

folder scoping the Hub project source ({workspace}:{folder})

Response

raw Hub response body (status code is passed through from the Hub)

Changes