Next, proceed by creating a new player. This step allows for the establishment of a new player profile within the MG+ system.
POST https://api-demo.k2net.io/api/v1/agents/Test_Agent/players
Request Headers
JSON
Authorization: “Bearer eyJhbNTI1ODcxN…”
Content-Type: “application/x-www-form-urlencoded”
Request Body
JSON
playerID: "IMTEST"
Response Headers
JSON
Content-Type: “application/json; charset=utf-8”
Response Body
JSON
{
"playerId": "IMTEST",
"createdDateUTC": "2022-06-14T08:27:11.564",
"isLocked": false,
"uri": "https://api-demo.k2net.io/api/v1/agents/Test_Agent/Players/IMTEST"
}