Set interaction restrictions for an organization
Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
Request Body required
Section titled “ Request Body required ”Limit interactions to a specific type of user for a specified duration
object
The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
The duration of the interaction restriction. Default: one_day.
Examples
{ "limit": "collaborators_only", "expiry": "one_month"}Responses
Section titled “ Responses ”Response
Interaction limit settings.
object
The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
Examples
{ "limit": "collaborators_only", "origin": "organization", "expires_at": "2018-08-17T04:18:39Z"}Validation failed, or the endpoint has been spammed.
Validation Error
object
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}