https://prefect.io logo
#prefect-community
Title
# prefect-community
p

Paco Ibañez

06/08/2022, 5:37 PM
Hello! where can I find out more info about what changed in the block api for beta6? I have a script that configures minio as default storage and I cant get it to work with the new apis. Before beta6 there were 2 abstractions bloc_spec and block and now there are 3? block_type, block_document and block_schema? thanks! https://github.com/fraibacas/prefect-orion/blob/main/flows/init_orion.py#L15
z

Zanie

06/08/2022, 5:41 PM
cc @alex
a

alex

06/08/2022, 5:46 PM
Hey @Paco Ibañez! The updated REST API documentation can be found here: https://orion-docs.prefect.io/api-ref/rest-api/#/. In 2.0b6, the blocks routes are now block_documents routes. We also split block specs into block types and block schemas. The most meaningful change for your use case is that the
name
field that was on a block_spec is now on the corresponding block_type of a block_schema. You can access it like so:
block_schema['block_type']['name']
. Let us know if you have any other questions!
p

Paco Ibañez

06/08/2022, 6:19 PM
thanks for your help! I finally got it to work
3 Views