Multiple auth schemes for single API definition

Could you please explicit how to add it via the API? If not configure with dashboard, normally I just manually make changes from tables in mongodb.