#1524
Vladimir
Keymaster

1) There is now way to manage this by custom post type ID. You should input the ID of the posts of those types which you wish to restrict access to. You may see the post ID at the browser address line when you open that post for the editing.
To restrict access to other post types use:
a) is post type uses its own capabilities set like ‘edit_events’, exclude ‘create_events’ capability from a user role;
b) if post type uses the same ‘edit_posts’ capability use ‘admin access blocking’ add-on: https://www.role-editor.com/block-admin-menu-items

2) Currently only the list of posts, pages ID is supported. I think about to add automatic support for the child pages as it is not the 1st feature request. But it is not realized yet.