<!--
{
  "availability" : [
    "App Store Connect API: 3.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreConnectAPI",
  "identifier" : "/documentation/AppStoreConnectAPI/GameCenterMatchmakingRuleCreateRequest/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:GameCenterMatchmakingRuleCreateRequest.Data.Attributes"
  },
  "title" : "GameCenterMatchmakingRuleCreateRequest.Data.Attributes"
}
-->

# GameCenterMatchmakingRuleCreateRequest.Data.Attributes

The attributes for a rule that you create.

```
object GameCenterMatchmakingRuleCreateRequest.Data.Attributes
```

## Discussion

The possible values for the `type` field are:

|`COMPATIBLE`|Rules that enforce constraints on two match requests and return a Boolean value.  ![](spacer) For example, a rule that requires devices to run the same version of your game, or finds players that share a common language or game settings. ![](spacer) If you set the `type` field to `COMPATIBLE`, compare the two match requests in the `requests` array in your expression, as in:  ![](spacer) `areCompatibleAppVersions(requests[0], requests[1])`                                                          |
|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`DISTANCE`  |Rules that evaluate the similarity of two match requests and return a numeric value between `0.0` and `1.0`.  ![](spacer) For example, rules that compare the latency or distance between players and find players with the exact same language and region setting. ![](spacer) If you set the `type` field to `DISTANCE`, evaluate the two match requests in the `requests` array in your expression, as in: ![](spacer) `geoLatency(requests[0], requests[1])`                                                    |
|`MATCH`     |Rules that evaluate properties across all compatible requests.  ![](spacer) For example, rules that prefer match candidates with more players but allows less players after a period of time, compare the difference in skill levels of players to a desired skill level that’s a function of time, and find players that have compatible game configurations that loosen over time. ![](spacer) If you set the type field to `MATCH`, use the `requests` array in the expression to get all the compatible matches.|
|`TEAM`      |Rules that evaluate the assignment of players to teams and return a Boolean value. ![](spacer) For example, rules that make the number of players on each team the same, balance the skill levels on each team for a fair match, and keep invited friends on the same team. ![](spacer) If you set the `type` field to `TEAM`, use the `teams` array to get all the teams associated with the rule set.                                                                                                             |

---

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)