Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (46 loc) · 798 Bytes

File metadata and controls

59 lines (46 loc) · 798 Bytes

store/purchase/username Endpoint

The store/purchase/username endpoint enables you to change your username.

Endpoint

store/purchase/username

Method

POST

Parameters

username: ID of the item you want to buy

{
    "id": "454",
    "username": "xxx"
}

Possible error messages

Insufficient permissions (not being logged in)

{
    "data": [
        "You are not authorized to access this resource."
    ],
    "status": "notAuthorized",
}

id or username is missing

{
    "data": [
        "xxxxxxxx is required"
    ],
    "status": "requestError",
}

Data returned

{
    'data': [{
      'count': 1,
      'name': 'username',
      'pp': 0
    }],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}