Edit survey blocks
Changed onEdits a survey's blocks in place — update, insert or remove whole blocks without resending the ones you are not changing. Operations apply in order against a single snapshot and are applied atomically: either all of them land or none do.
Blocks are addressed by id, never by position, so a concurrent edit cannot silently redirect an operation onto a different block. An update replaces the target block entirely, the same whole-subtree rule PATCH /api/v3/surveys/{surveyId} uses, and the replacement must carry every language the survey has configured.
Pass expectedUpdatedAt (the updatedAt from your last read) to make the write conditional; see the 409 response. Session cookie or x-api-key.
Request
- Base URLhttps://app.formbricks.com
- URLhttps://app.formbricks.com/api/v3/surveys/{surveyId}/blocks
- Auth
- API key in cookie next-auth.session-token
- or API key in header x-api-key
- or HTTP bearer
Path parameters
Survey identifier.
Request body
Response
Blocks updated; returns the full survey resource.
Changes
- warning
added the new
rowenum value to the///////////response property for the response status - warning
added the new
rowenum value to the///////////response property for the response status - info
added the new
rowenum value to the request property////////////////// - info
added the new
rowenum value to the request property////////////////// - info
added the new
rowenum value to the request property////////////////// - info
added the new
rowenum value to the request property//////////////////
- warning
- breaking
added
subschema #5: SurveyInteractionFilterto the/////////////response propertyoneOflist for the response status
- breaking