<!--
{
  "availability" : [
    "App Store Connect API: 3.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreConnectAPI",
  "identifier" : "/documentation/AppStoreConnectAPI/GameCenterMatchmakingRuleSetCreateRequest/Data-data.dictionary/Attributes-data.dictionary",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "App Store Connect API"
    ],
    "preciseIdentifier" : "data:app_store_connect_api:GameCenterMatchmakingRuleSetCreateRequest.Data.Attributes"
  },
  "title" : "GameCenterMatchmakingRuleSetCreateRequest.Data.Attributes"
}
-->

# GameCenterMatchmakingRuleSetCreateRequest.Data.Attributes

The attributes for a rule set that you create.

```
object GameCenterMatchmakingRuleSetCreateRequest.Data.Attributes
```

## Discussion

The `minPlayers` and `maxPlayers` attributes constrain the range of players in the match requests. If you don’t set the `GKMatchRequest.`<doc://com.apple.documentation/documentation/GameKit/GKMatchRequest/minPlayers> and `GKMatchRequest.`<doc://com.apple.documentation/documentation/GameKit/GKMatchRequest/maxPlayers> properties in your code, the properties default to the rule set `minPlayers` and `maxPlayers` attributes. If you set the <doc://com.apple.documentation/documentation/GameKit/GKMatchRequest> properties, use values that are in the rule set range.

For example, if the match request range is `[2, 4]` and the rule set range is `[2,8]`, Game Center finds players within the `[2, 4]` match request range. However, if the match request range is `[2, 8]` and the rule set range is `[3, 4]`, Game Center ignores the match request properties and finds players within the `[3, 4]` rule set range. If the match request range is `[8, 8]` and the rule set range is `[2, 4]` (outside of the rule set range), Game Center never finds players for that request.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)