Onboarding Questionnaire - Admin

Write this section into the tenant's tables

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

Path parameters

questionnaire_idinteger required
section_keystring required

Headers

x-api-tokenstring nullable

Request body

answers_hashstring required

Response

Successful Response

{"stackTrail":"paths:/api/admin/onboarding-questionnaires/{questionnaire_id}/sections/{section_key}/apply:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 2 revisions of this API.1