Merge checks - Pipelines must succeed

How to set Merge checks - Pipelines must succeed - globally for all projects active in default. Or if it is not possible how to change it through Gitlab API ?