Programmatically setting a collaborator

I know how to set a collaborator via the DockerHub web gui.

Is there a way to programmatically set a collaborator via a REST endpoint as well?

I’ve searched the docs and the forum, but haven’t found an answer.

TIA