repository
Add a deploy token to a repository, it authenticates git over HTTPS
post/repos/{owner}/{repo}/keys/tokens
Path parameters
ownerstring required
owner of the repo
repostring required
name of the repo
Request body
Response
DeployKey
Example response
{
"repository": {
"repo_transfer": {
"teams": [
{
"units": [
"repo.code",
"repo.issues",
"repo.ext_issues",
"repo.wiki",
"repo.pulls",
"repo.releases",
"repo.projects",
"repo.ext_wiki"
],
"units_map": {
"repo.code": "read",
"repo.ext_issues": "none",
"repo.ext_wiki": "none",
"repo.issues": "write",
"repo.projects": "none",
"repo.pulls": "owner",
"repo.releases": "none",
"repo.wiki": "admin"
}
}
]
}
}
}Changes
Changed in 1 of the 6 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○