You can update an existing block, including the blocks meta information and the the block's elements. If you update the block elements and you add for example a new question, you must make sure the question exisists in the survey (see list_questions and create_question).
update_block( survey_id, block_id, type = "Standard", description = "New Block", id = NULL, options, elements )
survey_id | the survey id |
---|---|
block_id | the block id |
type | block type |
description | block description |
id | a unique block id identifier (should be of form BL_FakeBlockID1234) |
options | list of block options |
elements | list of block elements |
A list
if (FALSE) { update_block("SV_012345678901234", "BL_723z35LY23KCZ4p") }