To enable block editing on custom post type :
function create_post_type (){
$args = array(
...
'support' => array('title', 'thumbnail'),
'show_in_rest' => true,
...
);
register_post_type('new-cpt-slug', $args);
}
add_action('init', 'create_post_type', 9);
Custom taxonomies :
$args = array(
...
'rewrite' => array('slug' => 'profil'),
'show_in_rest' => true,
);
register_taxonomy( 'custom_tax_slug', ['cpt_slug'], [$args] );
Sources: