prefect.server.api.block_types
create_block_type(block_type, db=Depends(provide_database_interface))
async
Create a new block type
Source code in src/prefect/server/api/block_types.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
read_block_type_by_id(block_type_id=Path(..., description='The block type ID', alias='id'), db=Depends(provide_database_interface))
async
Get a block type by ID.
Source code in src/prefect/server/api/block_types.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
read_block_type_by_slug(block_type_slug=Path(..., description='The block type name', alias='slug'), db=Depends(provide_database_interface))
async
Get a block type by name.
Source code in src/prefect/server/api/block_types.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
read_block_types(block_types=None, block_schemas=None, limit=dependencies.LimitBody(), offset=Body(0, ge=0), db=Depends(provide_database_interface))
async
Gets all block types. Optionally limit return with limit and offset.
Source code in src/prefect/server/api/block_types.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
update_block_type(block_type, block_type_id=Path(..., description='The block type ID', alias='id'), db=Depends(provide_database_interface))
async
Update a block type.
Source code in src/prefect/server/api/block_types.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|