How to import data from a spreadsheet to blueprints structured fields?

You’d have to read the Excelsheet (using a library) into an array that has the format you need for the structure field, then update the page with the yaml encoded array.

Basically like in this function Add to structure, apart from the adding to it.