Skip to content

post_issue

Santiago Pravisani edited this page Dec 14, 2017 · 2 revisions

Grant Badge to Player

Grants a new badge to a player. In case the player already has the badge, the badge is not granted.

URL

POST /issues

REQUIRED PARAMETERS

Name Value Description
email String Email of the player (Id of Metagame)
badge_id integer Id of the Badge in Metagame

OPTIONAL PARAMETERS

REQUEST EXAMPLE

POST /issues?email=testemail@gmail.com&badge_id=4

RESPONSE EXAMPLE

{ "ok": "Badge granted to player successfully" }

ERRORS

Wrong Params
{
    "error": "Couldn't find entity. Check your params."
}
Player already has the badge
{
    "error": "Player already has the badge"
}

Clone this wiki locally