Skip to content

Create Rule

POST
/v1/sandbox/{sandbox_id}/match-making-rule

Create a new MatchMakingRule in a sandbox

Requires permission sandbox:config:edit.

Authorizations

Parameters

Path Parameters

sandbox_id
required

Sandbox ID

string format: uuid

Sandbox ID

Request Body required

This mixin is meant to give a set of common properties to root config models

object
name

Name of the resource

string
>= 1 characters <= 125 characters
description

Description of the resource

string
>= 1 characters <= 250 characters
custom_data

Custom data associated with the resource

object
key
additional properties
string
match_making_ruleset_id
required

Which ruleset this MatchMakingRule belongs to

string format: uuid
comparison_operation
required

Which comparison operator is used when evaluating the rule

string
Allowed values: eq ne lt le gt ge
item_id

What item is being compared if this is an Inventory rule

string format: uuid
rule_type
required

What type of rule this is (determines what types of values are being compared)

string
Allowed values: Inventory JoiningSessionSize
comparison_value
required

What value is to be compared to

integer

Responses

200

Successful Response

This mixin is meant to give a set of common properties to root config models

object
name

Name of the resource

string
>= 1 characters <= 125 characters
description

Description of the resource

string
>= 1 characters <= 250 characters
custom_data

Custom data associated with the resource

object
key
additional properties
string
match_making_ruleset_id
required

Which ruleset this MatchMakingRule belongs to

string format: uuid
comparison_operation
required

Which comparison operator is used when evaluating the rule

string
Allowed values: eq ne lt le gt ge
item_id

What item is being compared if this is an Inventory rule

string format: uuid
rule_type
required

What type of rule this is (determines what types of values are being compared)

string
Allowed values: Inventory JoiningSessionSize
comparison_value
required

What value is to be compared to

integer
sandbox_id

ID of the Sandbox

string format: uuid
last_modified_account_id

Account ID of the user who last modified the resource

string format: uuid
last_modified_timestamp

Timestamp of when the resource was last modified

string format: date-time
created_timestamp

Timestamp of when this resource was created

string format: date-time
match_making_rule_id
required

ID to uniquely identify this MatchMakingRule

string format: uuid

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string