Put Rule
PUT/v1/sandbox/:sandbox_id/match-making-rule/:match_making_rule_id
Update an existing MatchMakingRule in a sandbox
Requires permission sandbox:config:edit.
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
Which ruleset this MatchMakingRule belongs to
Possible values: [eq, ne, lt, le, gt, ge, in_set, not_in_set]
What comparison operation should be used when evaluating a rule
What item is being compared if this is an Inventory or InventoryLevel rule
Possible values: [Inventory, InventoryLevel, JoiningSessionSize, RegionList]
What type of rule is being evaluated
What value is to be compared to
A string value comprised of comma separated strings that can be used for RegionList rule with in_set or not_in_set comparison operations
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
Which ruleset this MatchMakingRule belongs to
Possible values: [eq, ne, lt, le, gt, ge, in_set, not_in_set]
What comparison operation should be used when evaluating a rule
What item is being compared if this is an Inventory or InventoryLevel rule
Possible values: [Inventory, InventoryLevel, JoiningSessionSize, RegionList]
What type of rule is being evaluated
What value is to be compared to
A string value comprised of comma separated strings that can be used for RegionList rule with in_set or not_in_set comparison operations
ID of the Sandbox
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when this resource was created
ID to uniquely identify this MatchMakingRule
{
"name": "string",
"description": "string",
"custom_data": {},
"match_making_ruleset_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"comparison_operation": "eq",
"item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rule_type": "Inventory",
"comparison_value": 0,
"comparison_value_str": "string",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"match_making_rule_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}