Skip to content
View as Markdown

Publish a user guide to a product's help centre (Cloudflare Pages) and return its public URL.

POST/v1/abilities/guide.publish

Publish a user guide to a product’s help centre (Cloudflare Pages) and return its public URL. Writes markdown into the product’s tenant guides dir and runs the Guide Center build and deploy. The key’s guideProducts allow-list decides which products it may publish to (fail-closed). Guide syntax: the Guide Center Markdown format.

Required
Yes
Content type
  • application/json
  • inputGuidePublishInputrequired
    Show 12 properties
    • productstringrequired

      recipe name, e.g. sebenza

    • slugstringrequired

      kebab-case; becomes the URL path

    • localestringoptional
      Default: "en"
    • titlestringrequired
    • areastringrequired

      index section, e.g. Get paid / People / Start

    • summarystringoptional
    • timestringoptional

      e.g. 5 min

    • coststringoptional

      e.g. R10

    • routestringoptional

      in-app route the guide explains

    • ordernumberoptional
    • markdownstringrequired

      guide body in the guide syntax (steps, labels, > ! callouts, slip blocks)

    • deploybooleanoptional
      Default: true

      false = write only, no build/deploy

  • contextCallContextoptional

    Optional call context. The tenant always comes from the credential: tenantId is honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.

    Show 3 properties
    • tenantIdstringoptional

      Sub-tenant to act for (sub-tenant credentials only).

    • runIdstringoptional

      The trust run (from trust.preflight) this call executes under.

    • verticalIdstringoptional

      Vertical to attribute created records to.

Schema shown for 200 · application/json

  • result

    The ability’s return value. Its shape depends on the ability.