@Leandro Ezequiel Molinari - Thanks for the question and using MS Q&A platform.
You can use the REST API to add a collection administrator. Instructions to use the REST API to add a collection admin can be found in our REST API for collections documentation. For additional information, you can see our REST API reference.
For more details, refer to Access control in the Microsoft Purview governance portal - Administrator change.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.