How to add topics to a repo via api?

I want to add topics to a repo via rest api, not sure which endpoint I should use.

1 Like

Hi @qijiang60,

Thanks for being here! You can use this endpoint for that:

https://developer.github.com/v3/repos/#replace-all-topics-for-a-repository

1 Like