Use API to set Code Owners

Problem to solve

Is it possible to use the Gitlab REST API to programmatically set code owners for a particular merge request during a CI/CD job?

I don’t want to use the CODEOWNERS file because I want to spread the owner declaration across my folders in a different format.