Onboarding Questionnaire - Admin

Write this section into the tenant's tables

Changed on

Accept a section: the answers land in the real tables.

Three guards, in this order:

  1. the questionnaire is under review (same gate as every other verb);
  2. the answers still hash to what the preview was built from -- otherwise the plan the reviewer approved is not the plan that would run;
  3. claim_section_for_apply moves the row to applying atomically, so a double-clicked button matches zero rows the second time and gets a 409.

The claim is released in finally. That covers an exception; it does NOT cover a killed worker, which is what /reset is for.

post/api/admin/onboarding-questionnaires/{questionnaire_id}/sections/{section_key}/apply

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/admin/onboarding-questionnaires/{questionnaire_id}/sections/{section_key}/apply
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

questionnaire_idinteger required
section_keystring required

Headers

x-api-tokenstring nullable

Request body

answers_hashstring required

Response

Successful Response

unknown required

Changes