Skip to main content

Why it is support only by the UI and not by the API?

You are mistaken. Please see the developer documentation:

figma.com

Thanks. Now I see that constraints property can handle that.