mirror of
https://github.com/jlengrand/jetbrains-client-api-repository.git
synced 2026-03-10 08:31:24 +00:00
74 lines
2.3 KiB
HTTP
74 lines
2.3 KiB
HTTP
## InteractionsApi
|
|
|
|
### Get interaction restrictions for your public repositories
|
|
## Get interaction restrictions for your public repositories
|
|
GET https://api.github.com/user/interaction-limits
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Get interaction restrictions for an organization
|
|
## Get interaction restrictions for an organization
|
|
GET https://api.github.com/orgs/{{org}}/interaction-limits
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Get interaction restrictions for a repository
|
|
## Get interaction restrictions for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Remove interaction restrictions from your public repositories
|
|
## Remove interaction restrictions from your public repositories
|
|
DELETE https://api.github.com/user/interaction-limits
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Remove interaction restrictions for an organization
|
|
## Remove interaction restrictions for an organization
|
|
DELETE https://api.github.com/orgs/{{org}}/interaction-limits
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Remove interaction restrictions for a repository
|
|
## Remove interaction restrictions for a repository
|
|
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
### Set interaction restrictions for your public repositories
|
|
## Set interaction restrictions for your public repositories
|
|
PUT https://api.github.com/user/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_month"
|
|
}
|
|
|
|
|
|
### Set interaction restrictions for an organization
|
|
## Set interaction restrictions for an organization
|
|
PUT https://api.github.com/orgs/{{org}}/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_month"
|
|
}
|
|
|
|
|
|
### Set interaction restrictions for a repository
|
|
## Set interaction restrictions for a repository
|
|
PUT https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{bearerToken}}
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_day"
|
|
}
|
|
|