To retrieve a specific survey block, you need to pass the survey id and the block id. The latter can be retrieved using the get_survey_flow function or the get_survey function.

create_block(survey_id, type = "Standard", description = "Block", ...)

Arguments

survey_id

the survey id

type

block type (Standard, Default or Trash)

description

block description

...

block options

Value

A list with the associated block id and flow id

Examples

if (FALSE) { create_block( "SV_012345678901234", "Standard", "New Block", "BlockLocking": "false", "RandomizeQuestions": "false", "BlockVisibility": "Collapsed" ) }