Add a single repository to an installation. The authenticated user must have admin access to the repository.You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
返回响应
🟢204Response
application/json
Body
🔵304304
🟠403403
🟠404404
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/user/installations//repositories/' \
--header'Authorization: Bearer <token>'