Skip to content

Promote a Questionnaire

After reverse-syncing local changes to Strapi (which creates a draft), you need to promote the draft to make it the published version.

Terminal window
yarn reverse-sync:questionnaire:promote -q <slug>
  1. The script finds the draft version of the questionnaire in Strapi
  2. It publishes the draft, replacing the previous published version
  3. The questionnaire is now available via the Strapi API’s published endpoint
  • After a successful reverse-sync that you have verified in preview
  • When you want to make a draft visible to the forward sync process

After promoting:

  1. Open the questionnaire in Strapi — it should show as published with your changes
  2. Run a forward sync to verify the round-trip:
    Terminal window
    yarn sync:questionnaire -q <slug>
  3. Check that the generated file matches your local version (no unexpected diffs)