octokit.rest

Replace all repository topics

mercy Preview (required)

The topics property for repositories on GitHub is currently available for developers to preview. To view the topics property in calls that return repository results, you must provide a custom media type in the Accept header:

application/vnd.github.mercy-preview+json

Parameters

string The token will be passed in the authorization header.

string

string

string[] 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 cannot contain uppercase letters.

Request

PUT https://api.github.com/repos///topics
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest
content-length: 0


Example Response

Status: 200
{
  "names": [
    "octocat",
    "atom",
    "electron",
    "api"
  ]
}

See documentation on GitHub developer guides