GitHub: Interactions schemas
3 GitHub schemas with complete fields and constraints.
← Interactions operations · All schemas
Add users to the pull request creation cap bypass list for a repository — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A list of user logins to add or remove from the pull request creation cap bypass list. |
users | array | Required within parent | A list of user logins to add or remove from the bypass list. |
users[] | string | Each item |
Set interaction restrictions for a repository — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Limit interactions to a specific type of user for a specified duration |
expiry | string | Optional | The duration of the interaction restriction. Default: `one_day`. One of: one_day, three_days, one_week, one_month, six_months |
limit | string | Required within parent | The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. One of: existing_users, contributors_only, collaborators_only |
Set interaction restrictions for a repository — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Interaction limit settings. |
expires_at | string | Required within parent | Format: date-time |
limit | string | Required within parent | The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Known values: existing_users, contributors_only, collaborators_only |
origin | string | Required within parent |