Replace all repository topics
PUT
/repos/{owner}/{repo}/topics- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Body Params
requiredapplication/jsonobject
names array[string]
requiredAn 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.
Responses
application/json Topic object
Response
names array[string]
requiredapplication/json Basic Error object
Resource not found
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optionalapplication/json object
Preview header missing
documentation_url string
requiredmessage string
requiredapplication/json Validation Error Simple object
Validation failed
documentation_url string
requirederrors array[string]
optionalmessage string
required