VGA Planets

Introduction

How The Website Works

Races

Dashboard

Starmap

Planets

Starships

General Information

Guides

Contributions

Searchable Documentation

API account changepassword


Introduction —> How The Website Works —> API —> API account changepassword

Overview of /account/changepassword API call

The /account/changepassword API call is used by a player to change their Planets.nu account's e-password.

Data Sent

Data Description
username Player's username
oldpassword Player's existing password
password Player's new password
apikey Player's existing API key

Data Returned

If the process is successful, the following response is generated.

Data Description
success True

Failures

{"success":false,"error":"Missing required parameter - username"}

{"success":false,"error":"Missing required parameter - apikey"}

{"success":false,"error":"Missing required parameter - oldpassword"}

{"success":false,"error":"Missing required parameter - password"}

{"success":false,"error":"Incorrect old password."}

Back