Update CMS static block programmatically at store level Magento 2.

Magento 2 Contains the native functionality for multiple CMS static block with the same identifier for different store view.

You can update/edit any cms static block programmatically via Magento\Cms\Api\BlockRepositoryInterface interface and Magento\Cms\Model\BlockFactory Factory method.

We will update our CMS Block as per store view level, If you have multiple CMS static block with the same identifier for different store view, You can update only specific CMS static block using store id.

When you try to update any CMS Block programmatically, at that time you must pass your data with the _first_store_id and store_id field.

_first_store_id is your store id.
store_id is the array of store id value.

You need to create data Object that matches the CMS Block to update specific CMS Static Block.