Replace all repository topics
PUT
/repos/{owner}/{repo}/topics
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
names
required
An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names will be saved as lowercase.
Array<string>
Examples
Example default
{ "names": [ "octocat", "atom", "electron", "api" ]}Responses
Section titled “ Responses ”Response
Media type application/json
Topic
A topic aggregates entities that are related to a subject.
object
names
required
Array<string>
Examples
Example default
{ "names": [ "octocat", "atom", "electron", "api" ]}Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Media type application/json
Validation Error Simple
Validation Error Simple
object
message
required
string
documentation_url
required
string
errors
Array<string>
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}