Error 2

Sometimes in WooCommerce API bulk operations (add/edit/delete) are restricted. So it will give a error like
"Sorry, you are not allowed to batch manipulate this resource. [woocommerce_rest_cannot_batch]"

To resolve this error, follow this steps:

1. Install & activate Code Snippet plugin in wordpress.
2. Go to Snippet - Add New and add a new snippet
3. The snippet will have below written codes:add_filter( 'woocommerce_rest_check_permissions', 'allow_bulk_operation', 10, 4 ); function allow_bulk_operation( $permission, $context, $object_id, $type ) { return true; }
4. Save & Activate it.
Now it will allow the bulk operation from API.

If you want to understand it better, check this link: