{
  "args": {
    "app_id": {
      "desc": "The id of the app to restrict. Either `app_id` or `request_id` is required.",
      "example": "A12345",
      "required": false,
      "type": "string"
    },
    "enterprise_id": {
      "desc": "The ID of the enterprise to approve the app on. Exactly one of the `team_id` or `enterprise_id` arguments is required, not both.",
      "example": "E12345",
      "required": false
    },
    "request_id": {
      "desc": "The id of the request to restrict. Either `app_id` or `request_id` is required.",
      "example": "Ar12345",
      "required": false,
      "type": "string"
    },
    "team_id": {
      "desc": "The ID of the workspace to approve the app on. Exactly one of the `team_id` or `enterprise_id` arguments is required, not both.",
      "example": "T12345",
      "required": false
    }
  },
  "desc": "Restrict an app for installation on a workspace.",
  "errors": {
    "app_management_app_not_installed_on_org": "The app management app must be installed on the org.",
    "custom_integration_not_allowed_at_enterprise": "Returned when the install request is for custom integration app.",
    "feature_not_enabled": "Returned when the Admin APIs feature is not enabled for this team",
    "invalid_app_id": "The `app_id` passed is invalid.",
    "invalid_request_id": "The `request_id` passed is invalid.",
    "invalid_scopes": "Some of the provided scopes do not exist",
    "not_an_admin": "This method is only accessible by org owners and admins",
    "request_already_resolved": "The app request has already been resolved",
    "request_id_or_app_id_is_required": "Must include a `request_id` or `app_id`",
    "request_id_required_for_custom_integrations": "A `request_id` is required for custom integrations",
    "team_not_found": "Returned when team id is not found.",
    "too_many_ids_provided": "Please provide only `app_id` OR `request_id`",
    "too_many_teams_provided": "Please provide only `team_id` OR `enterprise_id`"
  },
  "rate_limit": {
    "label": "Tier 2: 20+ per minute",
    "url": "https://docs.slack.dev/apis/web-api/rate-limits"
  },
  "scopes": {
    "user": [
      {
        "name": "admin.apps:write",
        "url": "https://docs.slack.dev/reference/scopes/admin.apps.write"
      }
    ]
  }
}

