Can't create one match with two players, using REST API

Hello,

I tried to create ticket using matchmaking Rest API, but I can’t find the right way to create one match for two players. I made two ticket creation requests with different userId in players array and in “impersonated-user-id” header. Sample:

  1. Create ticket request for first player:
    Header impersonated-user-id: 60a4e540-1158-4770-9d62-6787ee97b5rw1
{
  "players": [
    {
        "id": "60a4e540-1158-4770-9d62-6787ee97b5rw1",
        "customData": {
            "MapName":"DevelopScene"
        }
    }
  ],
  "queueName": "develop",
  "attributes": { 
      "MaxPlayers" : "2"
  }
}

I got ticket Id and have assigment for this ticket (I could see, that server is allocated for this ticket). Then I did second request:
Header impersonated-user-id: 41f34620-c715-46c3-875e-cc2d71030ep9

{
  "players": [
    {
        "id": "41f34620-c715-46c3-875e-cc2d71030ep9",
        "customData": {
            "MapName":"DevelopScene"
        }
    }
  ],
  "queueName": "develop",
  "attributes": { 
      "MaxPlayers" : "2"
  }
}

So, I have two ticket which are assigned to same pool but different server used for. What am I doing wrong? How is it needed to create ticket for N count of players?

Thank you for feedback and help!

Hi, what is the min number of players on the configuration of your pool ?
I suggest in your case to put it to min player:2 and max player: 2.

In that case, the server will not be allocated before getting to players in a match