---
title: "Set interaction restrictions for an organization"
method: PUT
path: "/orgs/{org}/interaction-limits"
tags: ["interactions"]
---

# Set interaction restrictions for an organization

`PUT /orgs/{org}/interaction-limits`

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.

## Path parameters

- `org` string, required

## Request body

- InteractionLimit — Limit interactions to a specific type of user for a specified duration
  - `limit` 'existing_users' | 'contributors_only' | 'collaborators_only', required — The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
  - `expiry` 'one_day' | 'three_days' | 'one_week' | 'one_month' | 'six_months' — The duration of the interaction restriction. Default: `one_day`.

## Response `200`

Response

- InteractionLimitResponse — Interaction limit settings.
  - `limit` 'existing_users' | 'contributors_only' | 'collaborators_only', required — The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
  - `origin` string, required
  - `expires_at` string, date-time, required

## Other responses

- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
