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:
- 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!