Skip to main content

Request

curl -X PUT https://api.docfiy.com/api/v1/sites/acme-docs/content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docsJson": { "name": "Acme Docs", "navigation": {} },
    "mdxFiles": {
      "index.mdx": "---\ntitle: Introduction\n---\n\nWelcome to Acme."
    }
  }'

Publishing updates the site content store and marks the site ready for deployment.

To queue a deployment after publishing, call POST /api/v1/sites/{slug}/deploy/trigger.