Skip to content

Create

Insert player data for the currently authenticated player.

HTTP request

POST https://megamify.com/api/v1/player/data/

Headers

See Security section of the API Reference.

Body

Name Required Type Description
game True int The Game ID
player True int The Player ID
key True string The key name
value True string/object The value
data_type True int The data type (1=string, 2=json, 3=incrementer)
permission True int The permission type (1=Read Only, 2=Read Write)

Response

Status: 201 Created

If successful, this method returns a PlayerData object in the response body.